Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iIYtX-0005Qy-GW for pgsql-general@arkaria.postgresql.org; Thu, 10 Oct 2019 13:54:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iIYtU-0005Kz-VX for pgsql-general@arkaria.postgresql.org; Thu, 10 Oct 2019 13:54:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iIYtT-0005Kc-8G for pgsql-general@lists.postgresql.org; Thu, 10 Oct 2019 13:54:16 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iIYtL-00015S-Dj for pgsql-general@lists.postgresql.org; Thu, 10 Oct 2019 13:54:13 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 8BDD57EA; Thu, 10 Oct 2019 09:54:04 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 10 Oct 2019 09:54:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=C NyeHQv7dmhoEoQ/gMZbvvyPr7n7ej1tUT2Uv681vR8=; b=C8QAeN+OBeUwnah52 TA5yROPA0MC0JNAeB3CT786nx+V/oxABNDlzyoKZ7wr4wplKW300Ed641gsG/bCm 9MvevEBoX48COHAHJ3fcgcnU2sjSD7klYEsIzyaXJV870IGIsyw8mj0fJ8OOyF+t Lkphz5kP1YJG+JtPVkgQfl43NXwJcYK3h8nC0AzGXIA4IHFJsg2HQ1b2Yb2D+GME jGZ8HF9sO5W0wL6MdqOQcL3o5GOBnfEI6gdiuH8lVwWlEtJk/xDA/Po2oRsiwbEI H25hxaxas70I7OZ4h0BdBW67AbgpKwpnASuK6QYp3Cg/EBWrjGcoNre68v8V4gqD FK3BA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=CNyeHQv7dmhoEoQ/gMZbvvyPr7n7ej1tUT2Uv681v R8=; b=ki+Wi6OU0CakH21EtooSdxaQfuCBXSLYrIQGQVp8ZzyFmlpRs+9QhLYQw Xx/uKJzcvCWF7FB9jARRFmUAJFpHkiWZjE5nxvoTZF7Jl2orRNciOmLAWi4Ww4GW TY1jFPHGnkvOtDsEKP1Uo46PQUZFu32YNaBWsjzzcaDRfIgt0M6xIJpRsQBFr8PA f3KTF+4UWgF5eyatKx6c0qFOjem/w0tqHjkeAFEz1WCMyt//NvjDx5MwjqfYQYPX KE/XdNKEXxEnDMQD8FDt9Gjn/fH96EvJD0l7KxwgFaUAJhFQvIpce0/5es9WHgHw jqw2GfP6MabDut2lpPtouq6uHOu9A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrieefgdejvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucfkphepudejgedrvddu rdekledrvddukeenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvh gvrhesrghklhgrvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.2] (174-21-89-218.tukw.qwest.net [174.21.89.218]) by mail.messagingengine.com (Postfix) with ESMTPA id 8967CD6005E; Thu, 10 Oct 2019 09:54:03 -0400 (EDT) Subject: Re: syntax error with v12 To: Ivan Kabaivanov , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: <44caf85c-3aca-2d4c-68d0-2156efa5121b@aklaver.com> Date: Thu, 10 Oct 2019 06:54:02 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/10/19 5:51 AM, Ivan Kabaivanov wrote: > Hi, everyone. > > First time poster here. > > This snippet (from ovirt-engine-dwh) used to work fine with > postgresql-11.x, but emits a syntax error with postgresql-12.0: > > CREATETABLEhistory_configuration > ( > var_name VARCHAR(50) NOTNULL, > var_value VARCHAR(255), > var_datetime TIMESTAMPWITHTIME ZONE, > CONSTRAINT PK_history_configuration PRIMARY KEY(var_name) > ) WITHOIDS; > > psql:/usr/share/ovirt-engine-dwh/dbscripts/create_tables.sql:7: ERROR: >  syntax error at or near "OIDS" > LINE 7: ) WITH OIDS; > > Is what I provided sufficient to troubleshoot the issue?  Let me know > what else must be necessary for me to add. https://www.postgresql.org/docs/12/release-12.html#id-1.11.6.5.3 " Remove the special behavior of oid columns (Andres Freund, John Naylor) Previously, a normally-invisible oid column could be specified during table creation using WITH OIDS; that ability has been removed. Columns can still be explicitly declared as type oid. Operations on tables that have columns created using WITH OIDS will need adjustment. The system catalogs that previously had hidden oid columns now have ordinary oid columns. Hence, SELECT * will now output those columns, whereas previously they would be displayed only if selected explicitly. " > > Thanks, > IvanK. -- Adrian Klaver adrian.klaver@aklaver.com