From: Rob Sargent <robjsargent@gmail.com>
To: Igor Korot <ikorot01@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Add schema to the query
Date: Sun, 6 May 2018 22:54:42 -0600
Message-ID: <B612F05E-938C-443E-84EE-9F6A73B23352@gmail.com> (raw)
In-Reply-To: <CA+FnnTy2L=VTDutUTD+iXeRVjhP50OkJoj3uhK+5=8fDQngb1Q@mail.gmail.com>
References: <CA+FnnTy2L=VTDutUTD+iXeRVjhP50OkJoj3uhK+5=8fDQngb1Q@mail.gmail.com>
> On May 6, 2018, at 8:19 PM, Igor Korot <ikorot01@gmail.com> wrote:
>
> Hi, ALL,
>
> Is there an easy way to add the schema to the following query:
>
> SELECT u.usename FROM pg_class c, pg_user u WHERE u.usesysid =
> c.relowner AND relname = ?
>
> Thank you.
>
Are you looking for the owner of a particular schema.tablename?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: robjsargent@gmail.com, ikorot01@gmail.com
Subject: Re: Add schema to the query
In-Reply-To: <B612F05E-938C-443E-84EE-9F6A73B23352@gmail.com>
References: <CA+FnnTy2L=VTDutUTD+iXeRVjhP50OkJoj3uhK+5=8fDQngb1Q@mail.gmail.com> <B612F05E-938C-443E-84EE-9F6A73B23352@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox