Re: [HACKERS] \copy (query) delimiter syntax error

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Michael Fuhr <mike(at)fuhr(dot)org>, pgsql-hackers(at)postgresql(dot)org, "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] \copy (query) delimiter syntax error
Date: 2007-02-19 23:04:43
Message-ID: 200702192304.l1JN4hL18918@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches


Did we come to a conclusion on this?

---------------------------------------------------------------------------

Andrew Dunstan wrote:
> Andrew Dunstan wrote:
> >
> >
> > Tom Lane wrote:
> >> Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> >>
> >>> The consequence will be, though, that psql will accept a syntax for
> >>> "\copy (query) ..." that the corresponding backend command would
> >>> reject were we not transforming it. That strikes me as potentially
> >>> confusing.
> >>>
> >>
> >> Perhaps. What about plan B: remove the legacy syntax support in \copy?
> >> IIRC it has not been documented since 7.2, so maybe we can finally throw
> >> it overboard. Thoughts?
> >>
> >>
> >>
> >
> > I like it for 8.3 - but maybe my present patch would be better for
> > 8.2, as it involves less behaviour change.
> >
>
> While we decide this issue, which can be worked around in any case, I am
> going to commit the part of the patch that nobody has objected to (and
> which will fix Michael's original complaint), on HEAD and 8.2 stable, so
> we can get some testing going.
>
> cheers
>
> andrew
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2007-02-19 23:10:47 Re: Multiple Storage per Tablespace, or Volumes
Previous Message Simon Riggs 2007-02-19 22:29:40 Re: [HACKERS] Deadlock with pg_dump?

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2007-02-20 01:15:26 Re: Error correction for n_dead_tuples
Previous Message Simon Riggs 2007-02-19 22:29:40 Re: [HACKERS] Deadlock with pg_dump?