Re: How can I find a schema that a table belong to?

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How can I find a schema that a table belong to?
Date: 2011-01-19 17:03:03
Message-ID: ih75g7$qe6$1@dough.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jerry LeVan, 19.01.2011 17:35:
>
> So I guess the question is:
> Given a bare table name, how can I recover the schema
> qualified name with whatever the current search path happens
> to be?
>

SELECT table_schema
FROM information_schema.tables
WHERE table_name = 'your_table'
;

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Esmin Gracic 2011-01-19 17:08:49 get referential values
Previous Message Jerry LeVan 2011-01-19 16:35:20 How can I find a schema that a table belong to?