remove psql support for ancient copy syntax

Started by Andrew Dunstanover 19 years ago3 messagespatches
Jump to latest
#1Andrew Dunstan
andrew@dunslane.net

The attached patch implements Tom's recent suggestion to abandon the
undocumented psql support for ancient copy syntax. If there's no
objection I will apply before long.

cheers

andrew

Attachments:

copy.patchtext/x-patch; name=copy.patchDownload+16-50
#2Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Andrew Dunstan (#1)
Re: remove psql support for ancient copy syntax

Andrew Dunstan wrote:

The attached patch implements Tom's recent suggestion to abandon the
undocumented psql support for ancient copy syntax. If there's no
objection I will apply before long.

Just to clarify: this means that \copy will not work when connected to
servers older than 8.0, right?

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Alvaro Herrera (#2)
Re: remove psql support for ancient copy syntax

Alvaro Herrera <alvherre@commandprompt.com> writes:

Andrew Dunstan wrote:

The attached patch implements Tom's recent suggestion to abandon the
undocumented psql support for ancient copy syntax. If there's no
objection I will apply before long.

Just to clarify: this means that \copy will not work when connected to
servers older than 8.0, right?

No, "ancient" means "pre-7.3". Also it's only a problem if you try to
use one of the affected options ("with oids", "using delimiters").
Does not seem like a showstopper objection to me. OTOH, it's also the
case that all we're saving is a couple dozen lines of code ...

regards, tom lane