pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Ivan Kabaivanov <ivan.kabaivanov@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: syntax error with v12
Date: Thu, 10 Oct 2019 06:54:02 -0700
Message-ID: <44caf85c-3aca-2d4c-68d0-2156efa5121b@aklaver.com> (raw)
In-Reply-To: <CAOHQZxt1XMwfV86ed1T0Gbb6GXQQsPFup=gFyJ0W3etKQ7-Vfw@mail.gmail.com>
References: <CAOHQZxt1XMwfV86ed1T0Gbb6GXQQsPFup=gFyJ0W3etKQ7-Vfw@mail.gmail.com>

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





view thread (5+ messages)

Message-ID: <44caf85c-3aca-2d4c-68d0-2156efa5121b@aklaver.com>
Permalink:  ../44caf85c-3aca-2d4c-68d0-2156efa5121b@aklaver.com/
Also on:    postgresql.org/message-id/44caf85c-3aca-2d4c-68d0-2156efa5121b@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, ivan.kabaivanov@gmail.com
  Subject: Re: syntax error with v12
  In-Reply-To: <44caf85c-3aca-2d4c-68d0-2156efa5121b@aklaver.com>
  References: <CAOHQZxt1XMwfV86ed1T0Gbb6GXQQsPFup=gFyJ0W3etKQ7-Vfw@mail.gmail.com> <44caf85c-3aca-2d4c-68d0-2156efa5121b@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox