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 19:01:41
Message-ID: ih7cel$37r$1@dough.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane, 19.01.2011 19:19:
>> SELECT table_schema
>> FROM information_schema.tables
>> WHERE table_name = 'your_table'
>> ;
>
> That's not going to work, at least not in the interesting case where you
> have more than one candidate table --- that SELECT will list all of 'em.
>

Ah, right. I was a buit too quick with my answer.

Regards
Thomas

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Lonni J Friedman 2011-01-19 19:05:29 Re: Anyone use PG with kvm/virtio? Any gotchas or recommended settings?
Previous Message bubba postgres 2011-01-19 18:58:19 Anyone use PG with kvm/virtio? Any gotchas or recommended settings?