mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
heap_fetch requires buffer pointer, must be released; heap_getnext
no longer returns buffer pointer, can be gotten from scan; descriptor; bootstrap can create multi-key indexes; pg_procname index now is multi-key index; oidint2, oidint4, oidname are gone (must be removed from regression tests); use System Cache rather than sequential scan in many places; heap_modifytuple no longer takes buffer parameter; remove unused buffer parameter in a few other functions; oid8 is not index-able; remove some use of single-character variable names; cleanup Buffer variables usage and scan descriptor looping; cleaned up allocation and freeing of tuples; 18k lines of diff;
This commit is contained in:
@ -395,18 +395,18 @@ init_sequence(char *caller, char *name)
|
||||
|
||||
if (elm != (SeqTable) NULL) /* we opened sequence from our */
|
||||
{ /* SeqTable - check relid ! */
|
||||
if (RelationGetRelationId(elm->rel) != elm->relid)
|
||||
if (RelationGetRelid(elm->rel) != elm->relid)
|
||||
{
|
||||
elog(NOTICE, "%s.%s: sequence was re-created",
|
||||
name, caller, name);
|
||||
elm->cached = elm->last = elm->increment = 0;
|
||||
elm->relid = RelationGetRelationId(elm->rel);
|
||||
elm->relid = RelationGetRelid(elm->rel);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
elm = temp;
|
||||
elm->relid = RelationGetRelationId(elm->rel);
|
||||
elm->relid = RelationGetRelid(elm->rel);
|
||||
if (seqtab == (SeqTable) NULL)
|
||||
seqtab = elm;
|
||||
else
|
||||
|
Reference in New Issue
Block a user