pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Herold <quabla@hemio.de>
To: David Fetter <david@fetter.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: COMMENT ON INDEX silently fails
Date: Fri, 30 Sep 2016 21:25:05 +0200
Message-ID: <1475263505.3787.0@mail.hemio.de> (raw)
In-Reply-To: <20160930190652.GA9774@fetter.org>
References: <1475236787.15450.0@mail.hemio.de>
	<16508.1475239741@sss.pgh.pa.us>
	<20160930190652.GA9774@fetter.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>


> 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



view thread (7+ messages)  latest in thread

Message-ID: <1475263505.3787.0@mail.hemio.de>
Permalink:  ../1475263505.3787.0@mail.hemio.de/
Also on:    postgresql.org/message-id/1475263505.3787.0@mail.hemio.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: quabla@hemio.de, david@fetter.org, tgl@sss.pgh.pa.us
  Subject: Re: COMMENT ON INDEX silently fails
  In-Reply-To: <1475263505.3787.0@mail.hemio.de>
  References: <1475236787.15450.0@mail.hemio.de> <16508.1475239741@sss.pgh.pa.us> <20160930190652.GA9774@fetter.org> <1475263505.3787.0@mail.hemio.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox