Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d67547d

Browse files
committed
Set attbyval for attdisbursion to FALSE
Set atttype for relchecks to 21 (int2) Set relkind for pg_attrdef & pg_relcheck to 'n'
1 parent ee5f09f commit d67547d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/include/catalog/pg_attribute.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: pg_attribute.h,v 1.11 1997/08/21 03:02:13 momjian Exp $
10+
* $Id: pg_attribute.h,v 1.12 1997/08/22 04:04:18 vadim Exp $
1111
*
1212
* NOTES
1313
* the genbki.sh script reads this file and generates .bki
@@ -362,7 +362,7 @@ DATA(insert OID = 0 ( 1261 vtype 18 0 1 -11 0 -1 t f c f f));
362362
{ 1249l, {"attrelid"}, 26l, 0l, 4, 1, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
363363
{ 1249l, {"attname"}, 19l, 0l, NAMEDATALEN, 2, 0l, -1l, '\0', '\0', 'i', '\0', '\0' }, \
364364
{ 1249l, {"atttypid"}, 26l, 0l, 4, 3, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
365-
{ 1249l, {"attdisbursion"}, 700l, 0l, 4, 4, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
365+
{ 1249l, {"attdisbursion"}, 700l, 0l, 4, 4, 0l, -1l, '\0', '\0', 'i', '\0', '\0' }, \
366366
{ 1249l, {"attlen"}, 21l, 0l, 2, 5, 0l, -1l, '\001', '\0', 's', '\0', '\0' }, \
367367
{ 1249l, {"attnum"}, 21l, 0l, 2, 6, 0l, -1l, '\001', '\0', 's', '\0', '\0' }, \
368368
{ 1249l, {"attnelems"}, 23l, 0l, 4, 7, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
@@ -376,7 +376,7 @@ DATA(insert OID = 0 ( 1261 vtype 18 0 1 -11 0 -1 t f c f f));
376376
DATA(insert OID = 0 ( 1249 attrelid 26 0 4 1 0 -1 t f i f f));
377377
DATA(insert OID = 0 ( 1249 attname 19 0 NAMEDATALEN 2 0 -1 f f i f f));
378378
DATA(insert OID = 0 ( 1249 atttypid 26 0 4 3 0 -1 t f i f f));
379-
DATA(insert OID = 0 ( 1249 attdisbursion 700 0 4 4 0 -1 t f i f f));
379+
DATA(insert OID = 0 ( 1249 attdisbursion 700 0 4 4 0 -1 f f i f f));
380380
DATA(insert OID = 0 ( 1249 attlen 21 0 2 5 0 -1 t f s f f));
381381
DATA(insert OID = 0 ( 1249 attnum 21 0 2 6 0 -1 t f s f f));
382382
DATA(insert OID = 0 ( 1249 attnelems 23 0 4 7 0 -1 t f i f f));
@@ -417,7 +417,7 @@ DATA(insert OID = 0 ( 1249 vtype 18 0 1 -11 0 -1 t f c f f));
417417
{ 1259l, {"relarch"}, 18, 0l, 1, 11, 0l, -1l, '\001', '\0', 'c', '\0', '\0' }, \
418418
{ 1259l, {"relnatts"}, 21, 0l, 2, 12, 0l, -1l, '\001', '\0', 's', '\0', '\0' }, \
419419
{ 1259l, {"relsmgr"}, 210l, 0l, 2, 13, 0l, -1l, '\001', '\0', 's', '\0', '\0' }, \
420-
{ 1259l, {"relchecks"}, 210l, 0l, 2, 14, 0l, -1l, '\001', '\0', 's', '\0', '\0' }, \
420+
{ 1259l, {"relchecks"}, 21l, 0l, 2, 14, 0l, -1l, '\001', '\0', 's', '\0', '\0' }, \
421421
{ 1259l, {"relhasrules"}, 16, 0l, 1, 15, 0l, -1l, '\001', '\0', 'c', '\0', '\0' }, \
422422
{ 1259l, {"relacl"}, 1034l, 0l, -1, 16, 0l, -1l, '\0', '\0', 'i', '\0', '\0' }
423423

@@ -435,7 +435,7 @@ DATA(insert OID = 0 ( 1259 relkind 18 0 1 10 0 -1 t f c f f));
435435
DATA(insert OID = 0 ( 1259 relarch 18 0 1 11 0 -1 t f c f f));
436436
DATA(insert OID = 0 ( 1259 relnatts 21 0 2 12 0 -1 t f s f f));
437437
DATA(insert OID = 0 ( 1259 relsmgr 210 0 2 13 0 -1 t f s f f));
438-
DATA(insert OID = 0 ( 1259 relchecks 210 0 2 14 0 -1 t f s f f));
438+
DATA(insert OID = 0 ( 1259 relchecks 21 0 2 14 0 -1 t f s f f));
439439
DATA(insert OID = 0 ( 1259 relhasrules 16 0 1 15 0 -1 t f c f f));
440440
DATA(insert OID = 0 ( 1259 relacl 1034 0 -1 16 0 -1 f f i f f));
441441
DATA(insert OID = 0 ( 1259 ctid 27 0 6 -1 0 -1 f f i f f));

src/include/catalog/pg_class.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: pg_class.h,v 1.6 1997/08/21 01:37:52 vadim Exp $
10+
* $Id: pg_class.h,v 1.7 1997/08/22 04:04:19 vadim Exp $
1111
*
1212
* NOTES
1313
* ``pg_relation'' is being replaced by ``pg_class''. currently
@@ -135,8 +135,8 @@ DATA(insert OID = 1264 ( pg_variable 90 PGUID 0 0 0 0 0 f t s n 2 0 0 f _n
135135
DATA(insert OID = 1269 ( pg_log 99 PGUID 0 0 0 0 0 f t s n 1 0 0 f _null_ ));
136136
DATA(insert OID = 1271 ( pg_time 100 PGUID 0 0 0 0 0 f t s n 1 0 0 f _null_ ));
137137
DATA(insert OID = 1273 ( pg_hosts 101 PGUID 0 0 0 0 0 f t s n 3 0 0 f _null_ ));
138-
DATA(insert OID = 1215 ( pg_attrdef 109 PGUID 0 0 0 0 0 t t s n 4 0 0 f _null_ ));
139-
DATA(insert OID = 1216 ( pg_relcheck 110 PGUID 0 0 0 0 0 t t s n 4 0 0 f _null_ ));
138+
DATA(insert OID = 1215 ( pg_attrdef 109 PGUID 0 0 0 0 0 t t r n 4 0 0 f _null_ ));
139+
DATA(insert OID = 1216 ( pg_relcheck 110 PGUID 0 0 0 0 0 t t r n 4 0 0 f _null_ ));
140140

141141
#define RelOid_pg_type 1247
142142
#define RelOid_pg_demon 1251

0 commit comments

Comments
 (0)