Re: Python Driver - Mailing list pgsql-general

From Michael Fuhr
Subject Re: Python Driver
Date
Msg-id 20050211213920.GA34714@winnie.fuhr.org
Whole thread Raw
In response to Re: Python Driver  (Alex Turner <armtuk@gmail.com>)
List pgsql-general
On Fri, Feb 11, 2005 at 04:26:04PM -0500, Alex Turner wrote:
>
> What does the column 'relation' in pg_locks key to (Is there any docs
> on the website for this?)

See the "System Catalogs" chapter in the documentation (substitute
your version of PostgreSQL in the link):

http://www.postgresql.org/docs/8.0/static/catalogs.html

"relation" refers to an oid in pg_class.  An easy way to convert
it to a relation name is to cast it to regclass:

SELECT relation::regclass, * FROM pg_locks;

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: Python Driver
Next
From: Sven Willenberger
Date:
Subject: Re: databases/p5-postgresql-plperl links to wrong libperl.so