Re: [GENERAL] postgres FDW cost estimation options unrecognized in 9.3-beta1

From: BladeOfLight16 <bladeoflight16(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Lonni J Friedman <netllama(at)gmail(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [GENERAL] postgres FDW cost estimation options unrecognized in 9.3-beta1
Date: 2013-08-02 10:06:03
Message-ID: CA+=1U=U3E5XEYgtmFxg-VMUiU15Zjhy6oioKt2Ou73gqT-Z4Xw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Fri, Jul 26, 2013 at 6:28 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> <snip>
>
> I think we could do with both more documentation, and better error
> messages for these cases. In the SET-where-you-should-use-ADD case,
> perhaps
>
> ERROR: option "use_remote_estimate" has not been set
> HINT: Use ADD not SET to define an option that wasn't already set.
>
> In the ADD-where-you-should-use-SET case, perhaps
>
> ERROR: option "use_remote_estimate" is already set
> HINT: Use SET not ADD to change an option's value.
>
> <snip>
>
> Thoughts, better wordings?
>

Since SET is more or less a keyword in this context and there's already not
some obvious things about it, it might be better to avoid using it with a
slightly different meaning in the error messages. Maybe "defined" would be
clearer? That would be consistent with your usage of "define" in the first
error message as well.

ERROR: option "use_remote_estimate" has not been defined
HINT: Use ADD not SET to define an option that wasn't already defined.

ERROR: option "use_remote_estimate" is already defined
HINT: Use SET not ADD to change an option's value.

Just a thought.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tim Bowden 2013-08-02 11:34:55 Installing 9.2 on Ubuntu from packages: what is the current recommendation?
Previous Message Alban Hertroys 2013-08-02 09:50:37 Re: Postgres 9.2.4 for Windows (Vista) Dell Vostro 400, re-installation failure PLEASE CAN SOMEONE HELP!!

Browse pgsql-hackers by date

  From Date Subject
Next Message Cédric Villemain 2013-08-02 10:46:53 Re: Re: ALTER SYSTEM SET command to change postgresql.conf parameters (RE: Proposal for Allow postgresql.conf values to be changed via SQL [review])
Previous Message Dimitri Fontaine 2013-08-02 09:01:32 Re: [9.3 bug] disk space in pg_xlog increases during archive recovery