Skip to content

Commit 937e4e5

Browse files
committed
Fix sepgsql compile error caused by oid removal.
Per buildfarm animal rhinoceros. I (Andres) missed replacing a few uses of ObjectIdAttributeNumber in sepgsql. It's quite probable that the sepgsql test output will need more adapting than done in 578b22... Author: Thomas Munro Discussion: https://postgr.es/m/CAEepm=2Sk+66HJV8FLDfm_sKTn22j7cWTY_Y1Rok3RxeWL_Y0w@mail.gmail.com
1 parent 578b229 commit 937e4e5

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

contrib/sepgsql/database.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ sepgsql_database_post_create(Oid databaseId, const char *dtemplate)
8080
rel = heap_open(DatabaseRelationId, AccessShareLock);
8181

8282
ScanKeyInit(&skey,
83-
ObjectIdAttributeNumber,
83+
Anum_pg_database_oid,
8484
BTEqualStrategyNumber, F_OIDEQ,
8585
ObjectIdGetDatum(databaseId));
8686

contrib/sepgsql/proc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ sepgsql_proc_post_create(Oid functionId)
5959
rel = heap_open(ProcedureRelationId, AccessShareLock);
6060

6161
ScanKeyInit(&skey,
62-
ObjectIdAttributeNumber,
62+
Anum_pg_proc_oid,
6363
BTEqualStrategyNumber, F_OIDEQ,
6464
ObjectIdGetDatum(functionId));
6565

@@ -253,7 +253,7 @@ sepgsql_proc_setattr(Oid functionId)
253253
rel = heap_open(ProcedureRelationId, AccessShareLock);
254254

255255
ScanKeyInit(&skey,
256-
ObjectIdAttributeNumber,
256+
Anum_pg_proc_oid,
257257
BTEqualStrategyNumber, F_OIDEQ,
258258
ObjectIdGetDatum(functionId));
259259

contrib/sepgsql/relation.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ sepgsql_relation_post_create(Oid relOid)
262262
rel = heap_open(RelationRelationId, AccessShareLock);
263263

264264
ScanKeyInit(&skey,
265-
ObjectIdAttributeNumber,
265+
Anum_pg_class_oid,
266266
BTEqualStrategyNumber, F_OIDEQ,
267267
ObjectIdGetDatum(relOid));
268268

@@ -614,7 +614,7 @@ sepgsql_relation_setattr(Oid relOid)
614614
rel = heap_open(RelationRelationId, AccessShareLock);
615615

616616
ScanKeyInit(&skey,
617-
ObjectIdAttributeNumber,
617+
Anum_pg_class_oid,
618618
BTEqualStrategyNumber, F_OIDEQ,
619619
ObjectIdGetDatum(relOid));
620620

contrib/sepgsql/schema.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ sepgsql_schema_post_create(Oid namespaceId)
5959
rel = heap_open(NamespaceRelationId, AccessShareLock);
6060

6161
ScanKeyInit(&skey,
62-
ObjectIdAttributeNumber,
62+
Anum_pg_namespace_oid,
6363
BTEqualStrategyNumber, F_OIDEQ,
6464
ObjectIdGetDatum(namespaceId));
6565

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy