Re: Can I get the default value for an attribute (field) ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joel Burton <jburton(at)scw(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Can I get the default value for an attribute (field) ?
Date: 2001-04-01 23:02:45
Message-ID: 2689.986166165@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Joel Burton <jburton(at)scw(dot)org> writes:
> Is there a way to get what the default value for a field would be when a
> new record is added?

pg_attrdef is it. Sorry it's not pretty enough for you ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Paul Tomblin 2001-04-02 00:04:26 Re: Ok, why isn't it using *this* index?
Previous Message Tom Lane 2001-04-01 23:01:48 Re: Ok, why isn't it using *this* index?