Cleanup some minor oversights in optional-OIDs stuff.

This commit is contained in:
Tom Lane 2001-08-10 20:52:25 +00:00
parent bf56f0759b
commit ef6ccb0bcc
5 changed files with 11 additions and 16 deletions

View File

@ -1,5 +1,5 @@
<!--
$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
-->
@ -2155,7 +2155,7 @@ ALTER DOMAIN cities
</para>
</refsect3>
<refsect3 id="R3-SQL-INHERITANCE-1">
<refsect3 id="R3-SQL-OBJECTIDS-1">
<title>
Object IDs
</title>

View File

@ -8,7 +8,7 @@
*
*
* 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 $
*
*-------------------------------------------------------------------------
*/
@ -30,13 +30,10 @@
* 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];
@ -66,7 +63,7 @@ LargeObjectCreate(Oid loid)
/*
* Insert it
*/
retval = heap_insert(pg_largeobject, ntup);
heap_insert(pg_largeobject, ntup);
/*
* Update indices
@ -81,8 +78,6 @@ LargeObjectCreate(Oid loid)
heap_close(pg_largeobject, RowExclusiveLock);
heap_freetuple(ntup);
return retval;
}
void

View File

@ -9,7 +9,7 @@
*
*
* 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 $
*
*-------------------------------------------------------------------------
*/
@ -78,7 +78,7 @@ inv_create(int flags)
* 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

View File

@ -8,7 +8,7 @@
* 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
@ -55,7 +55,7 @@ typedef FormData_pg_largeobject *Form_pg_largeobject;
#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);

View File

@ -7,7 +7,7 @@
* 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
@ -1483,7 +1483,7 @@ DESCR("convert int4 to reltime");
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 - ));