Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bq3Tv-0000kT-RW for pgsql-bugs@arkaria.postgresql.org; Fri, 30 Sep 2016 19:28:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bq3Tv-00019Z-9R for pgsql-bugs@arkaria.postgresql.org; Fri, 30 Sep 2016 19:28:27 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bq3Ql-0000CX-FI for pgsql-bugs@postgresql.org; Fri, 30 Sep 2016 19:25:11 +0000 Received: from mail.hemio.de ([144.76.93.186]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bq3Qi-0002yK-WD for pgsql-bugs@postgresql.org; Fri, 30 Sep 2016 19:25:10 +0000 Received: from user.client.invalid (localhost [144.76.93.186]) by mail.hemio.de (Postfix) with ESMTPSA id D221670; Fri, 30 Sep 2016 21:25:06 +0200 (CEST) Date: Fri, 30 Sep 2016 21:25:05 +0200 From: Michael Herold Subject: Re: COMMENT ON INDEX silently fails To: David Fetter Cc: Tom Lane , pgsql-bugs@postgresql.org Message-Id: <1475263505.3787.0@mail.hemio.de> In-Reply-To: <20160930190652.GA9774@fetter.org> References: <1475236787.15450.0@mail.hemio.de> <16508.1475239741@sss.pgh.pa.us> <20160930190652.GA9774@fetter.org> X-Mailer: geary/0.11.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed X-Pg-Spam-Score: -7.2 (-------) 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 > Sure it does. Okay, correct phrasing would be: It has unexpected effects. > I suspect you were expecting the comment to be displayed in some > place it > isn't, but that's hard to discuss intelligently when you didn't say > where > you expected it to show up. create table foo (f1 int primary key); comment on index foo_pkey is 'test comment'; comment on constraint foo_pkey on foo is 'test comment 2'; # \di+ List of relations Schema | Name | Type | Owner | Table | Size | Description --------+----------+-------+----------+-------+------------+-------------- public | foo_pkey | index | postgres | foo | 8192 bytes | test comment (1 row) # SELECT * FROM pg_description WHERE description LIKE 'test com%'; objoid | classoid | objsubid | description --------+----------+----------+---------------- 123732 | 1259 | 0 | test comment 123733 | 2606 | 0 | test comment 2 (2 rows) $ pgAdmin III Before `comment on constraint` the textarea for comment is empty and no statement for comment in SQL pane. Afterwards it is using 'test comment 2'. Best, Michael -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs