Re: [HACKERS] Patch attached...

From: Chris <chris(at)bitmead(dot)com>
To: Postgres Hackers List <hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] Patch attached...
Date: 2000-02-05 13:12:53
Message-ID: 389C21D5.A2078036@bitmead.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hannu Krosing wrote:
>
> Hi
>
> I looked at the patch and for me the name of the variable
> to set to get the old behaviour (SET EXAMINE_SUBCLASS TO 'on';)
> seems confusing.
>
> At first I thought it was a typo to set it to 'ON' for old behaviour,
> my internal logic would set it to 'OFF' to not select subclass by default.

Umm, but that IS how it works...

$ psql
Welcome to psql, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help on internal slash commands
\g or terminate with semicolon to execute query
\q to quit
pghack=# select * from a;
aa
-----
aaa
bbb
(2 rows)

pghack=# set examine_subclass to 'off';
SET VARIABLE
pghack=# select * from a;
aa
-----
aaa
(1 row)

> I think something like DONT_SELECT_INHERITED or OLD_INHERITED_SELECT_SYNTAX
> would be much clearer in meaning.

I'm happy to hear alternative names, but I don't really want "SELECT" in
the name, because this might apply to UPDATE eventually too.

>
> Actually the name is not very important, as most people won't use it anyway ;)
>
> ----------------
> Hannu

--
Chris Bitmead
mailto:chris(at)bitmead(dot)com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2000-02-05 13:33:13 Re: [SQL] Re: [HACKERS] Proposed Changes to PostgreSQL
Previous Message Hannu Krosing 2000-02-05 12:36:12 Re: [HACKERS] Patch attached...