pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ken Johanson <pg-user@kensystem.com>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-general@postgresql.org
Subject: Re: RETURNING clause: how to specifiy column indexes?
Date: Thu, 13 Dec 2007 21:14:51 -0700
Message-ID: <4762033B.9080004@kensystem.com> (raw)
In-Reply-To: <Pine.BSO.4.64.0712132104040.22816@leary.csoft.net>
References: <22a9f7570703301215y44a937d0r5faa706bad7948c@mail.gmail.com>
	<4610AA0C.30608@ejurka.com>
	<47579D44.6060005@kensystem.com>
	<47579FBE.1070503@kensystem.com>
	<475F7766.2040005@kensystem.com>
	<12796.1197439644@sss.pgh.pa.us>
	<Pine.BSO.4.64.0712120138360.1768@leary.csoft.net>
	<4760D33E.40004@kensystem.com>
	<Pine.BSO.4.64.0712130149270.6192@leary.csoft.net>
	<4760DC91.8090103@kensystem.com>
	<4761D2DF.4080204@kensystem.com>
	<Pine.BSO.4.64.0712132104040.22816@leary.csoft.net>

Kris Jurka wrote:

> 
> Using pg_catalog tables is better than using information_schema because 
> of the way permissions work.  For information_schema you must be the 
> table owner, while people who only have permissions to access a table 
> will most likely be able to read pg_catalog.
> 

Do you have an equivalent query/join handy that will get the catalog and 
schema and table and column names frm the pg tables?

SELECT column_name
FROM information_schema.columns
WHERE table_catalog=? AND table_schema=? AND table_name=?
ORDER BY ordinal_position






view thread (11+ messages)

Message-ID: <4762033B.9080004@kensystem.com>
Permalink:  ../4762033B.9080004@kensystem.com/
Also on:    postgresql.org/message-id/4762033B.9080004@kensystem.com

 · 

reply

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-jdbc@postgresql.org
  Cc: pg-user@kensystem.com, books@ejurka.com, pgsql-general@postgresql.org
  Subject: Re: RETURNING clause: how to specifiy column indexes?
  In-Reply-To: <4762033B.9080004@kensystem.com>
  References: <22a9f7570703301215y44a937d0r5faa706bad7948c@mail.gmail.com> <4610AA0C.30608@ejurka.com> <47579D44.6060005@kensystem.com> <47579FBE.1070503@kensystem.com> <475F7766.2040005@kensystem.com> <12796.1197439644@sss.pgh.pa.us> <Pine.BSO.4.64.0712120138360.1768@leary.csoft.net> <4760D33E.40004@kensystem.com> <Pine.BSO.4.64.0712130149270.6192@leary.csoft.net> <4760DC91.8090103@kensystem.com> <4761D2DF.4080204@kensystem.com> <Pine.BSO.4.64.0712132104040.22816@leary.csoft.net> <4762033B.9080004@kensystem.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