<para>
The default value is defined as the value that the parameter would
- have had, if no <command>SET</> ever been issued for it in the
+ have had, if no <command>SET</> had ever been issued for it in the
current session. The actual source of this value might be a
compiled-in default, the configuration file, command-line options,
or per-database or per-user default settings. See <xref
Releases all temporary resources associated with the current
session. This has the same effect as executing the following
command sequence:
-<synopsis>
+<programlisting>
SET SESSION AUTHORIZATION DEFAULT;
RESET ALL;
DEALLOCATE ALL;
UNLISTEN *;
RESET PLANS;
RESET TEMP;
-</synopsis>
+</programlisting>
</para>
</listitem>
</varlistentry>
void
ResetTempTableNamespace(void)
{
- char namespaceName[NAMEDATALEN];
- Oid namespaceId;
-
- /* find oid */
- snprintf(namespaceName, sizeof(namespaceName), "pg_temp_%d", MyBackendId);
- namespaceId = GetSysCacheOid(NAMESPACENAME,
- CStringGetDatum(namespaceName),
- 0, 0, 0);
-
- /* clean if exists */
- if (OidIsValid(namespaceId))
- RemoveTempRelations(namespaceId);
+ if (OidIsValid(myTempNamespace))
+ RemoveTempRelations(myTempNamespace);
}
/*
extern bool isTempNamespace(Oid namespaceId);
extern bool isAnyTempNamespace(Oid namespaceId);
extern bool isOtherTempNamespace(Oid namespaceId);
+extern void ResetTempTableNamespace(void);
extern OverrideSearchPath *GetOverrideSearchPath(MemoryContext context);
extern void PushOverrideSearchPath(OverrideSearchPath *newpath);
extern List *fetch_search_path(bool includeImplicit);
-extern void ResetTempTableNamespace(void);
-
#endif /* NAMESPACE_H */