File tree 5 files changed +11
-16
lines changed
5 files changed +11
-16
lines changed Original file line number Diff line number Diff line change 1
1
<!--
2
- $Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.43 2001/08/10 18:57:32 tgl Exp $
2
+ $Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.44 2001/08/10 20:52:24 tgl Exp $
3
3
Postgres documentation
4
4
-->
5
5
@@ -2155,7 +2155,7 @@ ALTER DOMAIN cities
2155
2155
</para>
2156
2156
</refsect3>
2157
2157
2158
- <refsect3 id="R3-SQL-INHERITANCE -1">
2158
+ <refsect3 id="R3-SQL-OBJECTIDS -1">
2159
2159
<title>
2160
2160
Object IDs
2161
2161
</title>
Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/catalog/pg_largeobject.c,v 1.9 2001/06/22 19:16:21 wieck Exp $
11
+ * $Header: /cvsroot/pgsql/src/backend/catalog/pg_largeobject.c,v 1.10 2001/08/10 20:52:24 tgl Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
30
30
* We do this by inserting an empty first page, so that the object will
31
31
* appear to exist with size 0. Note that the unique index will reject
32
32
* an attempt to create a duplicate page.
33
- *
34
- * Return value is OID assigned to the page tuple (any use in it?)
35
33
*/
36
- Oid
34
+ void
37
35
LargeObjectCreate (Oid loid )
38
36
{
39
- Oid retval ;
40
37
Relation pg_largeobject ;
41
38
HeapTuple ntup ;
42
39
Relation idescs [Num_pg_largeobject_indices ];
@@ -66,7 +63,7 @@ LargeObjectCreate(Oid loid)
66
63
/*
67
64
* Insert it
68
65
*/
69
- retval = heap_insert (pg_largeobject , ntup );
66
+ heap_insert (pg_largeobject , ntup );
70
67
71
68
/*
72
69
* Update indices
@@ -81,8 +78,6 @@ LargeObjectCreate(Oid loid)
81
78
heap_close (pg_largeobject , RowExclusiveLock );
82
79
83
80
heap_freetuple (ntup );
84
-
85
- return retval ;
86
81
}
87
82
88
83
void
Original file line number Diff line number Diff line change 9
9
*
10
10
*
11
11
* IDENTIFICATION
12
- * $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.88 2001/06/22 19:16:23 wieck Exp $
12
+ * $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.89 2001/08/10 20:52:24 tgl Exp $
13
13
*
14
14
*-------------------------------------------------------------------------
15
15
*/
@@ -78,7 +78,7 @@ inv_create(int flags)
78
78
* Create the LO by writing an empty first page for it in
79
79
* pg_largeobject
80
80
*/
81
- ( void ) LargeObjectCreate (file_oid );
81
+ LargeObjectCreate (file_oid );
82
82
83
83
/*
84
84
* Advance command counter so that new tuple will be seen by later
Original file line number Diff line number Diff line change 8
8
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
9
9
* Portions Copyright (c) 1994, Regents of the University of California
10
10
*
11
- * $Id: pg_largeobject.h,v 1.8 2001/08/10 18:57:40 tgl Exp $
11
+ * $Id: pg_largeobject.h,v 1.9 2001/08/10 20:52:25 tgl Exp $
12
12
*
13
13
* NOTES
14
14
* the genbki.sh script reads this file and generates .bki
@@ -55,7 +55,7 @@ typedef FormData_pg_largeobject *Form_pg_largeobject;
55
55
#define Anum_pg_largeobject_pageno 2
56
56
#define Anum_pg_largeobject_data 3
57
57
58
- extern Oid LargeObjectCreate (Oid loid );
58
+ extern void LargeObjectCreate (Oid loid );
59
59
extern void LargeObjectDrop (Oid loid );
60
60
extern bool LargeObjectExists (Oid loid );
61
61
Original file line number Diff line number Diff line change 7
7
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
10
- * $Id: pg_proc.h,v 1.201 2001/08/10 18:57:40 tgl Exp $
10
+ * $Id: pg_proc.h,v 1.202 2001/08/10 20:52:25 tgl Exp $
11
11
*
12
12
* NOTES
13
13
* The script catalog/genbki.sh reads this file and generates .bki
@@ -1483,7 +1483,7 @@ DESCR("convert int4 to reltime");
1483
1483
1484
1484
DATA (insert OID = 1215 ( obj_description PGUID 14 f t f t 2 f 25 "26 19" 100 0 0 100 "select description from pg_description where objoid = $1 and classoid = (select oid from pg_class where relname = $2) and objsubid = 0" - ));
1485
1485
DESCR ("get description for object id and catalog name" );
1486
- DATA (insert OID = 1216 ( col_description PGUID 14 f t f t 2 f 25 "26 23" 100 0 0 100 "select description from pg_description where objoid = $1 and classoid = (select oid from pg_class where relname = 'pg_class') and objsubid = $2" - ));
1486
+ DATA (insert OID = 1216 ( col_description PGUID 14 f t f t 2 f 25 "26 23" 100 0 0 100 "select description from pg_description where objoid = $1 and classoid = (select oid from pg_class where relname = \ 'pg_class\ ') and objsubid = $2" - ));
1487
1487
DESCR ("get description for table column" );
1488
1488
1489
1489
DATA (insert OID = 1217 ( date_trunc PGUID 12 f t f t 2 f 1184 "25 1184" 100 0 0 100 timestamp_trunc - ));
You can’t perform that action at this time.
0 commit comments