mirror of https://github.com/citusdata/citus.git
Remove citus-tools submodule
parent
f77667857c
commit
5fd40f9b60
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 3376bd6845f0614908ed304f5033bd644c82d3bf
|
||||
|
|
@ -2025,23 +2025,24 @@ columnar_relation_storageid(PG_FUNCTION_ARGS)
|
|||
{
|
||||
Oid relationId = PG_GETARG_OID(0);
|
||||
|
||||
/* Keep in sync with columnar.storage view filter (exclude other sessions' temps). */
|
||||
#if PG_VERSION_NUM >= PG_VERSION_18
|
||||
/*
|
||||
* PG18+: avoid relation_open() on other sessions' temp tables.
|
||||
* Return NULL so callers/views just skip them (function is STRICT).
|
||||
*/
|
||||
|
||||
/* PG18+: avoid relation_open() on other sessions' temp tables. */
|
||||
HeapTuple classtup = SearchSysCache1(RELOID, ObjectIdGetDatum(relationId));
|
||||
if (!HeapTupleIsValid(classtup))
|
||||
PG_RETURN_NULL();
|
||||
|
||||
Form_pg_class cls = (Form_pg_class) GETSTRUCT(classtup);
|
||||
if (cls->relpersistence == RELPERSISTENCE_TEMP &&
|
||||
isOtherTempNamespace(cls->relnamespace))
|
||||
{
|
||||
ReleaseSysCache(classtup);
|
||||
PG_RETURN_NULL();
|
||||
PG_RETURN_NULL(); /* invalid/gone OID */
|
||||
}
|
||||
Form_pg_class cls = (Form_pg_class) GETSTRUCT(classtup);
|
||||
bool reject = (cls->relpersistence == RELPERSISTENCE_TEMP) &&
|
||||
isOtherTempNamespace(cls->relnamespace);
|
||||
ReleaseSysCache(classtup);
|
||||
|
||||
if (reject)
|
||||
{
|
||||
PG_RETURN_NULL(); /* function is STRICT; callers just skip */
|
||||
}
|
||||
#endif
|
||||
|
||||
Relation relation = relation_open(relationId, AccessShareLock);
|
||||
|
|
|
|||
Loading…
Reference in New Issue