pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: java reddy <jrjavajava@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: After upgrade from 9.4.1-3 to 10.15 and fresh install of 10.15 have some differences in the schema definition
Date: Mon, 01 Mar 2021 09:36:26 -0500
Message-ID: <715798.1614609386@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+pZvhHedok=Mc03dOa7Es0u0p3as31jeqQQ64=d_pc+OR14hQ@mail.gmail.com>
References: <CA+pZvhHedok=Mc03dOa7Es0u0p3as31jeqQQ64=d_pc+OR14hQ@mail.gmail.com>

java reddy <jrjavajava@gmail.com> writes:
>         I have one fresh install and other one is upgrade path (from 94. to
> 10.15).I am compare schema definitions full install versus upgrade path.
> I see some differences.
> 1. CURRENT_TIMESTAMP is replaced with now()
> 2.('now'::text)::timestamp without time zone is replaced with
> LOCAL_TIMESTAMP

v10 and later preserve CURRENT_TIMESTAMP and some similar SQL-standard
constructs as entered, when dumping the contents of views, column default
expressions, and the like.  Older versions replaced them with PG-specific
equivalents.  Neither behavior is a bug.

			regards, tom lane





view thread (2+ messages)

Message-ID: <715798.1614609386@sss.pgh.pa.us>
Permalink:  ../715798.1614609386@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/715798.1614609386@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jrjavajava@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: After upgrade from 9.4.1-3 to 10.15 and fresh install of 10.15 have some differences in the schema definition
  In-Reply-To: <715798.1614609386@sss.pgh.pa.us>

* 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