From: Sascha Ziemann <ziemann@secunet.de>
To: pgsql-sql@postgresql.org
Subject: COMMENT ON CONSTRAINT
Date: 11 Aug 2004 16:29:28 +0200
Message-ID: <m31xid21fb.fsf_-_@sn-e0310.ek.secunet.de> (raw)
In-Reply-To: <7E5F5B5E-E996-11D8-B87D-000A95C88220@myrealbox.com>
Hi,
I have a problem with the COMMENT command. Here:
http://www.postgresql.org/docs/7.4/static/sql-comment.html
it is defined in this way:
COMMENT ON
{
TABLE object_name |
COLUMN table_name.column_name |
AGGREGATE agg_name (agg_type) |
CONSTRAINT constraint_name ON table_name |
DATABASE object_name |
DOMAIN object_name |
FUNCTION func_name (arg1_type, arg2_type, ...) |
INDEX object_name |
OPERATOR op (leftoperand_type, rightoperand_type) |
RULE rule_name ON table_name |
SCHEMA object_name |
SEQUENCE object_name |
TRIGGER trigger_name ON table_name |
TYPE object_name |
VIEW object_name
} IS 'text'
I would like to comment a constraint but it doesn't work. I did the
following:
create table tab3 (
a integer,
b integer,
constraint uni unique (a, b)
);
comment on constraint uni on table tab3 is 'unique pair';
Did I do anything wrong or is this a bug?
cu Sascha
--
secunet Security Networks AG, Im Teelbruch 116, 45219 Essen
Tel: +49-2054-123-408 Fax: +49-2054-123-123
PGP: FBE2 A49B 6526 C1B4 7F10 24E4 5004 7C27 6E9A 9698
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: ziemann@secunet.de
Subject: Re: COMMENT ON CONSTRAINT
In-Reply-To: <m31xid21fb.fsf_-_@sn-e0310.ek.secunet.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