Re: adding defaults

From: Rosser Schwarz <rosser(dot)schwarz(at)gmail(dot)com>
To: Jodi Kanter <jkanter(at)virginia(dot)edu>, pgsql-admin(at)postgresql(dot)org
Subject: Re: adding defaults
Date: 2004-07-14 17:11:51
Message-ID: 37d451f704071410117a8cc088@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Jodi Kanter wrote:

>Can field specific defaults easily be added to a table that is already
>in existence and has data in it? I cannot seem to locate the correct
>ALTER command in any of my books.

$ psql -c "\h alter table" | grep -iC 1 default

ALTER TABLE [ ONLY ] name [ * ]
ALTER [ COLUMN ] column { SET DEFAULT expression | DROP DEFAULT }
...

/rls

--
:wq

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Simon Riggs 2004-07-14 19:33:40 Re: [HACKERS] Point in Time Recovery
Previous Message Peter Eisentraut 2004-07-14 17:09:24 Re: adding defaults