Re: BUG #11176: Doc bug: New York City is *not* the capital of New York State.

From: Lou Picciano <loupicciano(at)comcast(dot)net>
To: hartzell(at)alerce(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #11176: Doc bug: New York City is *not* the capital of New York State.
Date: 2014-08-15 12:31:58
Message-ID: 923661680.599236.1408105918983.JavaMail.root@comcast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

New York (City) may not be the capital of New York, but it is The Center of The Known Universe(!)
(Do the docs reflect this?)

(Lou Picciano)

----- Original Message -----
From: hartzell(at)alerce(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Sent: Thursday, August 14, 2014 11:32:21 PM
Subject: [BUGS] BUG #11176: Doc bug: New York City is *not* the capital of New York State.

The following bug has been logged on the website:

Bug reference: 11176
Logged by: George Hartzell
Email address: hartzell(at)alerce(dot)com
PostgreSQL version: 9.4beta2
Operating system: any
Description:

Inheritance does not automatically propagate data from INSERT or COPY
commands to other tables in the inheritance hierarchy. In our example, the
following INSERT statement will fail:

This example, in section 5.8, Inheritance, suggests that someone thinks that
New York the city is the capital of New York the state.

> INSERT INTO cities (name, population, altitude, state)
VALUES ('New York', NULL, NULL, 'NY');
> We might hope that the data would somehow be routed to the capitals table,
but this does not happen: INSERT always inserts into exactly the table
specified. In some cases it is possible to redirect the insertion using a
rule (see Chapter 38). However that does not help for the above case because
the cities table does not contain the column state, and so the command will
be rejected before the rule can be applied.

The example would make more sense if the city were Albany.

g.

--
Sent via pgsql-bugs mailing list (pgsql-bugs(at)postgresql(dot)org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message jbrnascimento 2014-08-15 15:32:00 Postgresql on windows SSL.
Previous Message Heikki Linnakangas 2014-08-15 07:02:08 Re: BUG #11176: Doc bug: New York City is *not* the capital of New York State.