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);
|
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
|
#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).
|
|
||||||
*/
|
|
||||||
HeapTuple classtup = SearchSysCache1(RELOID, ObjectIdGetDatum(relationId));
|
|
||||||
if (!HeapTupleIsValid(classtup))
|
|
||||||
PG_RETURN_NULL();
|
|
||||||
|
|
||||||
Form_pg_class cls = (Form_pg_class) GETSTRUCT(classtup);
|
/* PG18+: avoid relation_open() on other sessions' temp tables. */
|
||||||
if (cls->relpersistence == RELPERSISTENCE_TEMP &&
|
HeapTuple classtup = SearchSysCache1(RELOID, ObjectIdGetDatum(relationId));
|
||||||
isOtherTempNamespace(cls->relnamespace))
|
if (!HeapTupleIsValid(classtup))
|
||||||
{
|
{
|
||||||
ReleaseSysCache(classtup);
|
PG_RETURN_NULL(); /* invalid/gone OID */
|
||||||
PG_RETURN_NULL();
|
}
|
||||||
}
|
Form_pg_class cls = (Form_pg_class) GETSTRUCT(classtup);
|
||||||
ReleaseSysCache(classtup);
|
bool reject = (cls->relpersistence == RELPERSISTENCE_TEMP) &&
|
||||||
|
isOtherTempNamespace(cls->relnamespace);
|
||||||
|
ReleaseSysCache(classtup);
|
||||||
|
|
||||||
|
if (reject)
|
||||||
|
{
|
||||||
|
PG_RETURN_NULL(); /* function is STRICT; callers just skip */
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Relation relation = relation_open(relationId, AccessShareLock);
|
Relation relation = relation_open(relationId, AccessShareLock);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue