mirror of
https://github.com/postgres/postgres.git
synced 2025-11-18 02:02:55 +03:00
Cleanup some minor oversights in optional-OIDs stuff.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user