Re: Updatable Views - DEFAULT doesn't inherit from table???

From: Richard Huxton <dev(at)archonet(dot)com>
To: Csaba Együd <csegyud(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Updatable Views - DEFAULT doesn't inherit from table???
Date: 2008-12-05 14:28:17
Message-ID: 49393A81.3030702@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Csaba Együd wrote:
> Thx for your reply. Is there any possible way to generate an sql to
> "copy" these defaults to the view.

Nothing pre-packaged that I know of. You could probably do something
copying values about in pg_attribute and pg_constraint, but that'd be an
"at your own risk" sort of activity I suspect.

For simpler defaults etc. you could probably get what you need from
information_schema.columns

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Csaba Együd 2008-12-05 14:38:59 Re: Updatable Views - DEFAULT doesn't inherit from table???
Previous Message Glyn Astill 2008-12-05 14:25:02 Re: <IDLE> in transaction - safest way to kill