Can anyone explain how this works?

From: RbrtBrn3(at)aol(dot)com
To: pgsql-sql(at)postgresql(dot)org
Subject: Can anyone explain how this works?
Date: 2001-04-02 18:01:05
Message-ID: 1e.138d30e8.27fa50a1@aol.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

I recently posted this same question a few weeks back but lost the reply
someone kindly sent. The question again how exactly does this query work:

it will return all attributes and respective data types of a given table':

select attname, typname
from pg_class c, pg_attribute a, pg_type t
where relname = relation_name and
attrelid = c.oid and
atttypid = t.oid and
attnum > 0
order by attnum;

Many thanks,

Rob Burne.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message edipoelder 2001-04-02 20:47:54 Re: Fwd: Calling functions inside a function: behavior
Previous Message Lamar Owen 2001-04-02 17:20:43 Re: Re: Indexes vs indices