pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-hackers@postgreSQL.org
Cc: pgsql-admin@postgreSQL.org
Subject: Re: \connect case-folding change maybe not such a good idea
Date: Thu, 21 Feb 2002 14:10:05 -0500
Message-ID: <9014.1014318605@sss.pgh.pa.us> (raw)
In-Reply-To: <8475.1014313507@sss.pgh.pa.us>
References: <8475.1014313507@sss.pgh.pa.us>

I said:
> I think the wisest course may be to revert to the 7.1 \connect behavior

There is another possibility, which is to migrate to the new behavior
over time.  I like having pg_dump quote the names in \connect, because
that gives us a shot at working with names that have embedded spaces.
We could leave pg_dump as it stands in CVS tip, and modify psql to
work as follows:
	1. Quoted names in \connect are taken as quoted identifiers.
	2. Unquoted names are taken literally (not downcased).
Point 2 would allow forwards compatibility of existing dump files,
while point 1 makes the new pg_dump behavior work.  After a release
or two we could migrate to regular SQL-identifier handling in \connect.

This'd require a little bit of uglification in psql (another option_type
for scan_option()) but it doesn't seem too terribly awful.

Comments?

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <9014.1014318605@sss.pgh.pa.us>
Permalink:  ../9014.1014318605@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9014.1014318605@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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, peter_e@gmx.net, pgsql-hackers@postgreSQL.org
  Subject: Re: \connect case-folding change maybe not such a good idea
  In-Reply-To: <9014.1014318605@sss.pgh.pa.us>
  References: <8475.1014313507@sss.pgh.pa.us> <9014.1014318605@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