Re: Allow COPY's 'text' format to output a header - Mailing list pgsql-hackers

From Daniel Verite
Subject Re: Allow COPY's 'text' format to output a header
Date
Msg-id f1b42751-659f-43fc-8747-b9c8932d196a@manitou-mail.org
Whole thread Raw
In response to Re: Allow COPY's 'text' format to output a header  (Simon Muller <samullers@gmail.com>)
Responses Re: Allow COPY's 'text' format to output a header
List pgsql-hackers
    Simon Muller wrote:

> I changed the error type and message for consistency with other similar
> errors in that file. Whenever options are combined that are incompatible,
> it looks like the convention is for a ERRCODE_SYNTAX_ERROR to be thrown.

That makes sense, thanks for elaborating, although there are also
a fair number of ERRCODE_FEATURE_NOT_SUPPORTED in copy.c
that are raised on forbidden/nonsensical combination of features,
so the consistency argument could work both ways.

Best regards,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite


pgsql-hackers by date:

Previous
From: "Daniel Verite"
Date:
Subject: Re: [HACKERS] Can ICU be used for a database's default sort order?
Next
From: Robert Haas
Date:
Subject: Re: [HACKERS] Restricting maximum keep segments by repslots