X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 7857830D6E9 for ; Thu, 12 Jun 2003 13:47:37 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 68271-06 for ; Thu, 12 Jun 2003 10:47:26 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 6147D30E5B8 for ; Thu, 12 Jun 2003 10:47:26 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h5CDlPU6029436; Thu, 12 Jun 2003 09:47:25 -0400 (EDT) To: "Nathalie Boulos" Cc: pgsql-admin@postgresql.org Subject: Re: default value In-reply-to: References: Comments: In-reply-to "Nathalie Boulos" message dated "Thu, 12 Jun 2003 15:53:07 +0300" Date: Thu, 12 Jun 2003 09:47:25 -0400 Message-ID: <29435.1055425645@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200306/120 X-Sequence-Number: 9111 "Nathalie Boulos" writes: > When i insert a value into a field in the table directly, all the other > fields take their default values normaly, but the problem is if i insert > into the rule and not into the table, all the fields who has default values > do not take them. those fields remains empty. > So the default value does not work if i insert into a rule ??? A rule has its own defaults --- set them with ALTER TABLE rule SET DEFAULT. (IIRC this works since about 7.2; it won't work on old Postgresen.) regards, tom lane