Re: Feature Request: inline comments

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Feature Request: inline comments
Дата
Msg-id 11720.1194478373@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Feature Request: inline comments  (CaT <cat@zip.com.au>)
Ответы Re: Feature Request: inline comments  (CaT <cat@zip.com.au>)
Re: Feature Request: inline comments  ("Gevik Babakhani" <pgdev@xs4all.nl>)
Список pgsql-hackers
CaT <cat@zip.com.au> writes:
> It is a pretty obvious suggestion I bet was made many, many times
> before, but it would be very useful if you could create comments while
> creating the objects themselves, like

> CREATE TABLE FOO (
>    ID INTEGER NOT NULL PRIMARY KEY COMMENT 'The ID',
>    VALUE VARCHAR(10) COMMENT 'The value',
> ) COMMENT 'The table';

This seems like a fairly bad idea to me, because it converts your table
definitions into proprietary syntax.  Heaven help you trying to load the
above into any other database.  With a separate COMMENT ON command, at
least you have a fighting chance of ignoring the errors and pressing on.

> Perhaps this is a small enough add to make it into 8.3?

Feature freeze was six months ago, and no this wouldn't be a "small
add" even if it was the best idea since sliced bread.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Throw error and ErrorContext question.
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: fulltext parser strange behave