<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.43 2001/08/10 18:57:32 tgl Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.44 2001/08/10 20:52:24 tgl Exp $
Postgres documentation
-->
</para>
</refsect3>
- <refsect3 id="R3-SQL-INHERITANCE-1">
+ <refsect3 id="R3-SQL-OBJECTIDS-1">
<title>
Object IDs
</title>
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/catalog/pg_largeobject.c,v 1.9 2001/06/22 19:16:21 wieck Exp $
+ * $Header: /cvsroot/pgsql/src/backend/catalog/pg_largeobject.c,v 1.10 2001/08/10 20:52:24 tgl Exp $
*
*-------------------------------------------------------------------------
*/
* We do this by inserting an empty first page, so that the object will
* appear to exist with size 0. Note that the unique index will reject
* an attempt to create a duplicate page.
- *
- * Return value is OID assigned to the page tuple (any use in it?)
*/
-Oid
+void
LargeObjectCreate(Oid loid)
{
- Oid retval;
Relation pg_largeobject;
HeapTuple ntup;
Relation idescs[Num_pg_largeobject_indices];
/*
* Insert it
*/
- retval = heap_insert(pg_largeobject, ntup);
+ heap_insert(pg_largeobject, ntup);
/*
* Update indices
heap_close(pg_largeobject, RowExclusiveLock);
heap_freetuple(ntup);
-
- return retval;
}
void
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.88 2001/06/22 19:16:23 wieck Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.89 2001/08/10 20:52:24 tgl Exp $
*
*-------------------------------------------------------------------------
*/
* Create the LO by writing an empty first page for it in
* pg_largeobject
*/
- (void) LargeObjectCreate(file_oid);
+ LargeObjectCreate(file_oid);
/*
* Advance command counter so that new tuple will be seen by later
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_largeobject.h,v 1.8 2001/08/10 18:57:40 tgl Exp $
+ * $Id: pg_largeobject.h,v 1.9 2001/08/10 20:52:25 tgl Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
#define Anum_pg_largeobject_pageno 2
#define Anum_pg_largeobject_data 3
-extern Oid LargeObjectCreate(Oid loid);
+extern void LargeObjectCreate(Oid loid);
extern void LargeObjectDrop(Oid loid);
extern bool LargeObjectExists(Oid loid);
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_proc.h,v 1.201 2001/08/10 18:57:40 tgl Exp $
+ * $Id: pg_proc.h,v 1.202 2001/08/10 20:52:25 tgl Exp $
*
* NOTES
* The script catalog/genbki.sh reads this file and generates .bki
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" - ));
DESCR("get description for object id and catalog name");
-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" - ));
+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" - ));
DESCR("get description for table column");
DATA(insert OID = 1217 ( date_trunc PGUID 12 f t f t 2 f 1184 "25 1184" 100 0 0 100 timestamp_trunc - ));