X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 83559D1B220 for ; Wed, 14 Jul 2004 14:09:45 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 28700-09 for ; Wed, 14 Jul 2004 17:09:28 +0000 (GMT) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by svr1.postgresql.org (Postfix) with SMTP id 7D5D3D1B1C7 for ; Wed, 14 Jul 2004 14:09:26 -0300 (ADT) Received: (qmail 16448 invoked by uid 65534); 14 Jul 2004 17:09:25 -0000 Received: from dsl-082-082-233-200.arcor-ip.net (EHLO colt.pezone.net) (82.82.233.200) by mail.gmx.net (mp021) with SMTP; 14 Jul 2004 19:09:25 +0200 X-Authenticated: #495269 From: Peter Eisentraut To: Jodi Kanter , Postgres Admin List Subject: Re: adding defaults Date: Wed, 14 Jul 2004 19:09:24 +0200 User-Agent: KMail/1.5.1 References: <40F560AD.8030007@virginia.edu> In-Reply-To: <40F560AD.8030007@virginia.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200407141909.24359.peter_e@gmx.net> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/172 X-Sequence-Number: 14240 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. ALTER TABLE a ALTER COLUMN b SET DEFAULT c; -- Peter Eisentraut http://developer.postgresql.org/~petere/