pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: psql and Postgres 7.2
Date: Fri, 21 Jan 2022 13:49:30 -0500
Message-ID: <1202445.1642790970@sss.pgh.pa.us> (raw)
In-Reply-To: <a6d05cab-39f1-7c10-a19a-0889e0941bb3@aklaver.com>
References: <a6d05cab-39f1-7c10-a19a-0889e0941bb3@aklaver.com>

Adrian Klaver <adrian.klaver@aklaver.com> writes:
> src/bin/psql/command.c
> /*
>    * Ideally we should treat the arguments as SQL identifiers.  But for
>    * backwards compatibility with 7.2 and older pg_dump files, we have to
>    * take unquoted arguments verbatim (don't downcase them). For now,
>    * double-quoted arguments may be stripped of double quotes (as if SQL
>    * identifiers).  By 7.4 or so, pg_dump files can be expected to
>    * double-quote all mixed-case \connect arguments, and then we can get rid
>    * of OT_SQLIDHACK.
> */

> Since Postgres 14 pg_dump only goes back to 8.0 and the \d commands in 
> psql go back to 7.4, is this something that needs to hang on?

Yeah, I was wondering about that the other day.  I agree that we
probably don't need to worry anymore about reading 7.2 pg_dump
output.  However, people may be used to/depending on the current
behavior in other ways.  It's hard to be sure, but it is worth
noting that it's been a long time since \connect arguments were
only identifiers.  We'd have to consider the impact on the
connstring case, too.

			regards, tom lane





view thread (3+ messages)  latest in thread

Message-ID: <1202445.1642790970@sss.pgh.pa.us>
Permalink:  ../1202445.1642790970@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1202445.1642790970@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 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: tgl@sss.pgh.pa.us, adrian.klaver@aklaver.com
  Subject: Re: psql and Postgres 7.2
  In-Reply-To: <1202445.1642790970@sss.pgh.pa.us>
  References: <a6d05cab-39f1-7c10-a19a-0889e0941bb3@aklaver.com> <1202445.1642790970@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