Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XIBWt-00076k-2c for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Aug 2014 07:02:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XIBWs-0007qb-Ig for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Aug 2014 07:02:26 +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 1XIBWr-0007ok-UF for pgsql-bugs@postgresql.org; Fri, 15 Aug 2014 07:02:25 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XIBWm-0007fT-SZ for pgsql-bugs@postgresql.org; Fri, 15 Aug 2014 07:02:24 +0000 Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 6510B2A9E9; Fri, 15 Aug 2014 00:02:14 -0700 (PDT) Received: from EX13-CAS-001.vmware.com (EX13-CAS-001.vmware.com [10.113.191.51]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 53892B12EC; Fri, 15 Aug 2014 00:02:14 -0700 (PDT) Received: from EX13-MBX-024.vmware.com (10.113.191.44) by EX13-MBX-005.vmware.com (10.113.191.25) with Microsoft SMTP Server (TLS) id 15.0.775.38; Fri, 15 Aug 2014 00:02:13 -0700 Received: from [192.168.1.90] (10.113.160.246) by EX13-MBX-024.vmware.com (10.113.191.44) with Microsoft SMTP Server (TLS) id 15.0.775.38; Fri, 15 Aug 2014 00:02:13 -0700 Message-ID: <53EDB070.8030202@vmware.com> Date: Fri, 15 Aug 2014 10:02:08 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 MIME-Version: 1.0 To: , Subject: Re: BUG #11176: Doc bug: New York City is *not* the capital of New York State. References: <20140815033221.2544.74255@wrigleys.postgresql.org> In-Reply-To: <20140815033221.2544.74255@wrigleys.postgresql.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.113.160.246] X-ClientProxiedBy: EX13-CAS-013.vmware.com (10.113.191.65) To EX13-MBX-024.vmware.com (10.113.191.44) X-Pg-Spam-Score: -7.6 (-------) 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 On 08/15/2014 06:32 AM, hartzell@alerce.com wrote: > 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. Fixed, thanks. - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs