HeapTuple tuple;
Form_pg_propgraph_label pglform;
- tuple = SearchSysCache1(PROPGRAPHLABELOID, object->objectId);
+ tuple = SearchSysCache1(PROPGRAPHLABELOID, ObjectIdGetDatum(object->objectId));
if (!HeapTupleIsValid(tuple))
{
if (!missing_ok)
HeapTuple tuple;
Form_pg_propgraph_property pgpform;
- tuple = SearchSysCache1(PROPGRAPHPROPOID, object->objectId);
+ tuple = SearchSysCache1(PROPGRAPHPROPOID, ObjectIdGetDatum(object->objectId));
if (!HeapTupleIsValid(tuple))
{
if (!missing_ok)
HeapTuple tup;
Form_pg_propgraph_element pge;
- tup = SearchSysCache1(PROPGRAPHELOID, object->objectId);
+ tup = SearchSysCache1(PROPGRAPHELOID, ObjectIdGetDatum(object->objectId));
if (!HeapTupleIsValid(tup))
{
if (!missing_ok)
HeapTuple tup;
Form_pg_propgraph_label pgl;
- tup = SearchSysCache1(PROPGRAPHLABELOID, object->objectId);
+ tup = SearchSysCache1(PROPGRAPHLABELOID, ObjectIdGetDatum(object->objectId));
if (!HeapTupleIsValid(tup))
{
if (!missing_ok)
HeapTuple tup;
Form_pg_propgraph_property pgp;
- tup = SearchSysCache1(PROPGRAPHPROPOID, object->objectId);
+ tup = SearchSysCache1(PROPGRAPHPROPOID, ObjectIdGetDatum(object->objectId));
if (!HeapTupleIsValid(tup))
{
if (!missing_ok)
memset(replaces, false, sizeof(replaces));
/* Set the subscription to disabled. */
- values[Anum_pg_subscription_subretentionactive - 1] = active;
+ values[Anum_pg_subscription_subretentionactive - 1] = BoolGetDatum(active);
replaces[Anum_pg_subscription_subretentionactive - 1] = true;
/* Update the catalog */
Int32GetDatum(opts.maxretention);
values[Anum_pg_subscription_subretentionactive - 1] =
Int32GetDatum(opts.retaindeadtuples);
- values[Anum_pg_subscription_subserver - 1] = serverid;
+ values[Anum_pg_subscription_subserver - 1] = ObjectIdGetDatum(serverid);
if (!OidIsValid(serverid))
values[Anum_pg_subscription_subconninfo - 1] =
CStringGetTextDatum(conninfo);
walrcv_check_conninfo(conninfo,
sub->passwordrequired && !sub->ownersuperuser);
- values[Anum_pg_subscription_subserver - 1] = new_server->serverid;
+ values[Anum_pg_subscription_subserver - 1] = ObjectIdGetDatum(new_server->serverid);
replaces[Anum_pg_subscription_subserver - 1] = true;
ObjectAddressSet(referenced, ForeignServerRelationId, new_server->serverid);
DEPENDENCY_NORMAL,
ForeignServerRelationId, form->subserver);
- values[Anum_pg_subscription_subserver - 1] = InvalidOid;
+ values[Anum_pg_subscription_subserver - 1] = ObjectIdGetDatum(InvalidOid);
replaces[Anum_pg_subscription_subserver - 1] = true;
}
PartitionBoundSpec *boundspec = NULL;
/* Try fetching the tuple from the catcache, for speed. */
- tuple = SearchSysCache1(RELOID, partOid);
+ tuple = SearchSysCache1(RELOID, ObjectIdGetDatum(partOid));
if (!HeapTupleIsValid(tuple))
elog(ERROR, "cache lookup failed for relation %u", partOid);
ScanKeyInit(&skey,
Anum_pg_database_oid,
BTEqualStrategyNumber, F_OIDEQ,
- dboid);
+ ObjectIdGetDatum(dboid));
scan = systable_beginscan(rel, DatabaseOidIndexId, true, SnapshotSelf,
1, &skey);
tuple = systable_getnext(scan);
HeapTuple tuple;
char *labelname;
- tuple = SearchSysCache1(PROPGRAPHLABELOID, labeloid);
+ tuple = SearchSysCache1(PROPGRAPHLABELOID, ObjectIdGetDatum(labeloid));
if (!tuple)
{
elog(ERROR, "cache lookup failed for label %u", labeloid);
HeapTuple tuple;
char *propname;
- tuple = SearchSysCache1(PROPGRAPHPROPOID, propoid);
+ tuple = SearchSysCache1(PROPGRAPHPROPOID, ObjectIdGetDatum(propoid));
if (!tuple)
{
elog(ERROR, "cache lookup failed for property %u", propoid);