Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XI8GM-0000eO-51 for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Aug 2014 03:33:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XI8GL-0001Ae-Js for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Aug 2014 03:33:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XI8GK-00018Q-He for pgsql-bugs@postgresql.org; Fri, 15 Aug 2014 03:33:08 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XI8GF-0003NE-54 for pgsql-bugs@postgresql.org; Fri, 15 Aug 2014 03:33:06 +0000 MIME-Version: 1.0 Subject: BUG #11176: Doc bug: New York City is *not* the capital of New York State. To: pgsql-bugs@postgresql.org From: hartzell@alerce.com Date: Fri, 15 Aug 2014 03:32:21 +0000 Message-ID: <20140815033221.2544.74255@wrigleys.postgresql.org> X-Pg-Spam-Score: 0.0 (/) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 11176 Logged by: George Hartzell Email address: hartzell@alerce.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@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs