Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WAS30-0002T9-1D for pgsql-bugs@arkaria.postgresql.org; Mon, 03 Feb 2014 22:31:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WAS2z-0007kr-Cd for pgsql-bugs@arkaria.postgresql.org; Mon, 03 Feb 2014 22:31:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WAS2y-0007kP-Lp for pgsql-bugs@postgresql.org; Mon, 03 Feb 2014 22:31:20 +0000 Received: from mail-la0-f43.google.com ([209.85.215.43]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WAS2w-0000GB-HV for pgsql-bugs@postgresql.org; Mon, 03 Feb 2014 22:31:20 +0000 Received: by mail-la0-f43.google.com with SMTP id pv20so6020933lab.30 for ; Mon, 03 Feb 2014 14:31:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=r1gKZhTRqWiYXY1chskbn/wMt6B0IksZPucfckeQSjc=; b=d2l0pAoeENVDQe8SYPFG4o11HvD5XZkkCgBQkeAv1chutr7zeevtMVFAWSbDKXZDB8 v60K0e0Npuk+8mBVmuZM/zabjK6n+GeNa9sV1raa/UgJGWfxN6+tAniI4YssGIUNt9J4 ojFXy65xsEnrNjhdsyIEBIkX6/AvXY2ogD7kHFaw2blDOWqaJUxLVKaHJwQuEwrMq3hY QHW3JkjZ/kCTUwgC2Tg4cNA9yPsl/6J+Eo0C/KQN28k0ShwwIcQnAJEfGdUDIf0QwchY 4x5/w43lzuKCvtPRh+69XorpZag/UAHnE/nfelucwhzXuBpIGB/Jzq7uEA98Tx7QGWpL v5HA== X-Gm-Message-State: ALoCoQla0rPyDRSm2XsYsDIgL+32LK/xztBkzx1gGo321WoOQ5d8nNe3LVvS7NZkYJfjPZi97y6A X-Received: by 10.112.50.197 with SMTP id e5mr25924869lbo.4.1391466677476; Mon, 03 Feb 2014 14:31:17 -0800 (PST) Received: from dalli.local (ua-85-227-165-170.cust.bredbandsbolaget.se. [85.227.165.170]) by mx.google.com with ESMTPSA id 10sm18991776lan.5.2014.02.03.14.31.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Feb 2014 14:31:16 -0800 (PST) Message-ID: <52F018B5.3070106@joh.to> Date: Mon, 03 Feb 2014 23:31:17 +0100 From: Marko Tiikkaja User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: plademan@comcast.net, pgsql-bugs@postgresql.org Subject: Re: BUG #9088: default are not working References: <20140203222323.13575.44279@wrigleys.postgresql.org> In-Reply-To: <20140203222323.13575.44279@wrigleys.postgresql.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2/3/14, 11:23 PM, plademan@comcast.net wrote: > It appears that default values are no longer working in 9.3.1. > > insert into default_test > ( userId, date1, date2, date3 ) > values > ( null, null, null, null ); > > select * from default_test; This wouldn't have worked in previous versions either. You want: INSERT INTO default_test (userid, date1, date2, date) VALUES (DEFAULT, DEFAULT, DEFAULT, DEFAULT) or perhaps INSERT INTO default_test DEFAULT VALUES; Regards, Marko Tiikkaja -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs