Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 45a8b66

Browse files
author
Thomas G. Lockhart
committed
Include first text in some type descriptions (~29 entries).
1 parent 4b19101 commit 45a8b66

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

src/include/catalog/pg_type.h

Lines changed: 31 additions & 31 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_type.h,v 1.23 1997/11/16 04:36:43 momjian Exp $
10+
* $Id: pg_type.h,v 1.24 1997/11/17 16:39:16 thomas Exp $
1111
*
1212
* NOTES
1313
* the genbki.sh script reads this file and generates .bki
@@ -151,23 +151,23 @@ typedef TypeTupleFormData *TypeTupleForm;
151151

152152
/* OIDS 1 - 99 */
153153
DATA(insert OID = 16 ( bool PGUID 1 1 t b t \054 0 0 boolin boolout boolin boolout c _null_ ));
154-
DESCR("");
154+
DESCR("boolean 'true'/'false'");
155155
#define BOOLOID 16
156156

157157
DATA(insert OID = 17 ( bytea PGUID -1 -1 f b t \054 0 18 byteain byteaout byteain byteaout i _null_ ));
158158
DESCR("");
159159
DATA(insert OID = 18 ( char PGUID 1 1 t b t \054 0 0 charin charout charin charout c _null_ ));
160-
DESCR("");
160+
DESCR("single character 'c'");
161161
#define CHAROID 18
162162

163163
DATA(insert OID = 19 ( name PGUID NAMEDATALEN NAMEDATALEN f b t \054 0 18 namein nameout namein nameout d _null_ ));
164164
DESCR("");
165165
#define NAMEOID 19
166166

167167
DATA(insert OID = 20 ( char16 PGUID 16 16 f b t \054 0 18 char16in char16out char16in char16out i _null_ ));
168-
DESCR("");
168+
DESCR("sixteen characters");
169169
DATA(insert OID = 21 ( int2 PGUID 2 5 t b t \054 0 0 int2in int2out int2in int2out s _null_ ));
170-
DESCR("");
170+
DESCR("two-byte integer");
171171
#define INT2OID 21
172172

173173
DATA(insert OID = 22 ( int28 PGUID 16 50 f b t \054 0 21 int28in int28out int28in int28out i _null_ ));
@@ -182,13 +182,13 @@ DESCR("");
182182
#define INT28OID 22
183183

184184
DATA(insert OID = 23 ( int4 PGUID 4 10 t b t \054 0 0 int4in int4out int4in int4out i _null_ ));
185-
DESCR("");
185+
DESCR("4-byte integer");
186186
#define INT4OID 23
187187

188188
DATA(insert OID = 24 ( regproc PGUID 4 16 t b t \054 0 0 regprocin regprocout regprocin regprocout i _null_ ));
189189
DESCR("");
190190
DATA(insert OID = 25 ( text PGUID -1 -1 f b t \054 0 18 textin textout textin textout i _null_ ));
191-
DESCR("");
191+
DESCR("native variable-length string");
192192
#define TEXTOID 25
193193

194194
DATA(insert OID = 26 ( oid PGUID 4 10 t b t \054 0 0 int4in int4out int4in int4out i _null_ ));
@@ -207,7 +207,7 @@ DATA(insert OID = 32 ( SET PGUID -1 -1 f r t \054 0 -1 textin textout text
207207
DESCR("");
208208

209209
DATA(insert OID = 71 ( pg_type PGUID 1 1 t b t \054 1247 0 foo bar foo bar c _null_));
210-
DESCR("");
210+
DESCR("types table");
211211
DATA(insert OID = 75 ( pg_attribute PGUID 1 1 t b t \054 1249 0 foo bar foo bar c _null_));
212212
DESCR("");
213213
DATA(insert OID = 81 ( pg_proc PGUID 1 1 t b t \054 1255 0 foo bar foo bar c _null_));
@@ -219,7 +219,7 @@ DESCR("");
219219
DATA(insert OID = 87 ( pg_group PGUID 1 1 t b t \054 1261 0 foo bar foo bar c _null_));
220220
DESCR("");
221221
DATA(insert OID = 88 ( pg_database PGUID 1 1 t b t \054 1262 0 foo bar foo bar c _null_));
222-
DESCR("");
222+
DESCR("known databases");
223223
DATA(insert OID = 90 ( pg_variable PGUID 1 1 t b t \054 1264 0 foo bar foo bar c _null_));
224224
DESCR("");
225225
DATA(insert OID = 99 ( pg_log PGUID 1 1 t b t \054 1269 0 foo bar foo bar c _null_));
@@ -243,57 +243,57 @@ DESCR("");
243243

244244
/* OIDS 400 - 499 */
245245
DATA(insert OID = 409 ( char2 PGUID 2 2 t b t \054 0 18 char2in char2out char2in char2out s _null_ ));
246-
DESCR("");
246+
DESCR("two characters");
247247
DATA(insert OID = 410 ( char4 PGUID 4 4 t b t \054 0 18 char4in char4out char4in char4out i _null_ ));
248-
DESCR("");
248+
DESCR("four characters");
249249
DATA(insert OID = 411 ( char8 PGUID 8 8 f b t \054 0 18 char8in char8out char8in char8out i _null_ ));
250-
DESCR("");
250+
DESCR("eight characters");
251251

252252
/* OIDS 500 - 599 */
253253

254254
/* OIDS 600 - 699 */
255255
DATA(insert OID = 600 ( point PGUID 16 24 f b t \054 0 701 point_in point_out point_in point_out d _null_ ));
256-
DESCR("");
256+
DESCR("geometric point '(x, y)'");
257257
DATA(insert OID = 601 ( lseg PGUID 32 48 f b t \054 0 600 lseg_in lseg_out lseg_in lseg_out d _null_ ));
258-
DESCR("");
258+
DESCR("geometric line segment '(pt1,pt2)'");
259259
DATA(insert OID = 602 ( path PGUID -1 -1 f b t \054 0 600 path_in path_out path_in path_out d _null_ ));
260-
DESCR("");
260+
DESCR("geometric path '(pt1,...)'");
261261
DATA(insert OID = 603 ( box PGUID 32 100 f b t \073 0 600 box_in box_out box_in box_out d _null_ ));
262-
DESCR("");
262+
DESCR("geometric box '(lower left,upper right)'");
263263
DATA(insert OID = 604 ( polygon PGUID -1 -1 f b t \054 0 -1 poly_in poly_out poly_in poly_out d _null_ ));
264-
DESCR("");
264+
DESCR("geometric polygon '(pt1,...)'");
265265
DATA(insert OID = 605 ( filename PGUID 256 -1 f b t \054 0 18 filename_in filename_out filename_in filename_out i _null_ ));
266266
DESCR("");
267267

268268
DATA(insert OID = 628 ( line PGUID 32 48 f b t \054 0 701 line_in line_out line_in line_out d _null_ ));
269-
DESCR("");
269+
DESCR("geometric line '(pt1,pt2)'");
270270
DATA(insert OID = 629 ( _line PGUID -1 -1 f b t \054 0 628 array_in array_out array_in array_out d _null_ ));
271271
DESCR("");
272272

273273
/* OIDS 700 - 799 */
274274

275275
DATA(insert OID = 700 ( float4 PGUID 4 12 f b t \054 0 0 float4in float4out float4in float4out i _null_ ));
276-
DESCR("");
276+
DESCR("single-precision floating point number");
277277
#define FLOAT4OID 700
278278
DATA(insert OID = 701 ( float8 PGUID 8 24 f b t \054 0 0 float8in float8out float8in float8out d _null_ ));
279-
DESCR("");
279+
DESCR("double-precision floating point number");
280280
#define FLOAT8OID 701
281281
DATA(insert OID = 702 ( abstime PGUID 4 20 t b t \054 0 0 nabstimein nabstimeout nabstimein nabstimeout i _null_ ));
282-
DESCR("");
282+
DESCR("internal date and time (Unix system time)");
283283
DATA(insert OID = 703 ( reltime PGUID 4 20 t b t \054 0 0 reltimein reltimeout reltimein reltimeout i _null_ ));
284-
DESCR("");
284+
DESCR("internal time interval (Unix delta time)");
285285
DATA(insert OID = 704 ( tinterval PGUID 12 47 f b t \054 0 0 tintervalin tintervalout tintervalin tintervalout i _null_ ));
286-
DESCR("");
286+
DESCR("time interval '(abstime,abstime)'");
287287
DATA(insert OID = 705 ( unknown PGUID -1 -1 f b t \054 0 18 textin textout textin textout i _null_ ));
288288
DESCR("");
289289
#define UNKNOWNOID 705
290290

291291
DATA(insert OID = 718 ( circle PGUID 24 47 f b t \054 0 0 circle_in circle_out circle_in circle_out d _null_ ));
292-
DESCR("");
292+
DESCR("geometric circle '(center,radius>'");
293293
DATA(insert OID = 719 ( _circle PGUID -1 -1 f b t \054 0 718 array_in array_out array_in array_out d _null_ ));
294294
DESCR("");
295295
DATA(insert OID = 790 ( money PGUID 4 24 f b t \054 0 0 cash_in cash_out cash_in cash_out i _null_ ));
296-
DESCR("");
296+
DESCR("money '$xx.yy'");
297297
#define CASHOID 790
298298
DATA(insert OID = 791 ( _money PGUID -1 -1 f b t \054 0 790 array_in array_out array_in array_out i _null_ ));
299299
DESCR("");
@@ -384,14 +384,14 @@ DATA(insert OID = 1042 ( bpchar PGUID -1 -1 f b t \054 0 18 bpcharin bpcharou
384384
DESCR("");
385385
#define BPCHAROID 1042
386386
DATA(insert OID = 1043 ( varchar PGUID -1 -1 f b t \054 0 18 varcharin varcharout varcharin varcharout i _null_ ));
387-
DESCR("");
387+
DESCR("variable-length string with maximum size");
388388
#define VARCHAROID 1043
389389

390390
DATA(insert OID = 1082 ( date PGUID 4 10 t b t \054 0 0 date_in date_out date_in date_out i _null_ ));
391-
DESCR("");
391+
DESCR("date 'yyyy-mm-dd'");
392392
#define DATEOID 1082
393393
DATA(insert OID = 1083 ( time PGUID 8 16 f b t \054 0 0 time_in time_out time_in time_out d _null_ ));
394-
DESCR("");
394+
DESCR("time 'hh:mm:ss'");
395395
#define TIMEOID 1083
396396

397397
/* OIDS 1100 - 1199 */
@@ -400,19 +400,19 @@ DESCR("");
400400
DATA(insert OID = 1183 ( _time PGUID -1 -1 f b t \054 0 1083 array_in array_out array_in array_out d _null_ ));
401401
DESCR("");
402402
DATA(insert OID = 1184 ( datetime PGUID 8 47 f b t \054 0 0 datetime_in datetime_out datetime_in datetime_out d _null_ ));
403-
DESCR("");
403+
DESCR("date and time 'yyyy-mm-dd hh:mm:ss'");
404404
#define DATETIMEOID 1184
405405
DATA(insert OID = 1185 ( _datetime PGUID -1 -1 f b t \054 0 1184 array_in array_out array_in array_out d _null_ ));
406406
DESCR("");
407407
DATA(insert OID = 1186 ( timespan PGUID 12 47 f b t \054 0 0 timespan_in timespan_out timespan_in timespan_out d _null_ ));
408-
DESCR("");
408+
DESCR("time interval '@ <number> <units>'");
409409
#define TIMESPANOID 1186
410410
DATA(insert OID = 1187 ( _timespan PGUID -1 -1 f b t \054 0 1186 array_in array_out array_in array_out d _null_ ));
411411
DESCR("");
412412

413413
/* OIDS 1200 - 1299 */
414414
DATA(insert OID = 1296 ( timestamp PGUID 4 19 t b t \054 0 0 timestamp_in timestamp_out timestamp_in timestamp_out i _null_ ));
415-
DESCR("");
415+
DESCR("date and time");
416416
#define TIMESTAMPOID 1296
417417

418418
/*

0 commit comments

Comments
 (0)