Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id AFF3A47595B; Thu, 21 Feb 2002 14:10:23 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g1LJA5S09017; Thu, 21 Feb 2002 14:10:05 -0500 (EST) To: Peter Eisentraut Cc: pgsql-hackers@postgreSQL.org, pgsql-admin@postgreSQL.org Subject: Re: \connect case-folding change maybe not such a good idea In-reply-to: <8475.1014313507@sss.pgh.pa.us> References: <8475.1014313507@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Thu, 21 Feb 2002 12:45:07 -0500" Date: Thu, 21 Feb 2002 14:10:05 -0500 Message-ID: <9014.1014318605@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200202/272 X-Sequence-Number: 3425 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