summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane2002-05-17 20:53:33 +0000
committerTom Lane2002-05-17 20:53:33 +0000
commit940f772a292124cb4506ffd7c9c2e953f9db3f33 (patch)
tree6f0a70387594f7977dff9808ea8956263eb8f31a /src/include
parent5f21560ae8f7387cfe4e109a5bdc01c58f82fbe5 (diff)
Support temporary setting of search path during CREATE SCHEMA; this
allows the example in the CREATE SCHEMA ref page to actually work now. Also, clean up when the transaction that initially creates a temp-table namespace is later aborted. Simplify internal representation of search path by folding special cases into the main list.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/catalog/namespace.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/include/catalog/namespace.h b/src/include/catalog/namespace.h
index 8fe62acb0e1..5046ad09158 100644
--- a/src/include/catalog/namespace.h
+++ b/src/include/catalog/namespace.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: namespace.h,v 1.13 2002/05/17 01:19:19 tgl Exp $
+ * $Id: namespace.h,v 1.14 2002/05/17 20:53:33 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -72,13 +72,19 @@ extern char *NameListToString(List *names);
extern bool isTempNamespace(Oid namespaceId);
+extern void PushSpecialNamespace(Oid namespaceId);
+extern void PopSpecialNamespace(Oid namespaceId);
+
+/* initialization & transaction cleanup code */
+extern void InitializeSearchPath(void);
+extern void AtEOXact_Namespace(bool isCommit);
+
/* stuff for search_path GUC variable */
extern char *namespace_search_path;
extern const char *assign_search_path(const char *newval,
bool doit, bool interactive);
-extern void InitializeSearchPath(void);
-extern List *fetch_search_path(void);
+extern List *fetch_search_path(bool includeImplicit);
#endif /* NAMESPACE_H */