| From: | Ian Barwick <barwick(at)gmx(dot)net> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Schemas: status report, call for developers |
| Date: | 2002-05-01 01:46:37 |
| Message-ID: | 200205010346.37919.barwick@gmx.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers pgsql-interfaces |
> For commands
> that accept wildcard patterns, what should happen --- should "\z my*"
> find these tables, if they're not in my search path? Is "\z f*.my*"
> sensible to support? I dunno yet.
Technical question - this query:
SELECT nspname AS schema,
relname AS object
FROM pg_class c
INNER JOIN pg_namespace n
ON c.relnamespace=n.oid
WHERE relkind in ('r', 'v', 'S') AND
relname NOT LIKE 'pg$_%%' ESCAPE '$'
produces a result like this:
schema | object
--------+--------
public | abc
foo | abc
foo | xyz
bar | xyz
(4 rows)
How can I restrict the query to the schemas in the
current search path, i.e. the schema names returned
by SELECT current_schemas() ?
Ian Barwick
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Christopher Kings-Lynne | 2002-05-01 02:05:23 | Re: [HACKERS] [INTERFACES] Schemas: status report, call for developers |
| Previous Message | Neil Conway | 2002-05-01 00:11:10 | the parsing of parameters |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Christopher Kings-Lynne | 2002-05-01 02:05:23 | Re: [HACKERS] [INTERFACES] Schemas: status report, call for developers |
| Previous Message | Tom Lane | 2002-04-30 21:16:33 | Re: Schemas: status report, call for developers |