Re: Postgresql - Inline comment in VIEW Sql definition - Mailing list pgsql-novice

From Tom Lane
Subject Re: Postgresql - Inline comment in VIEW Sql definition
Date
Msg-id 29154.1459779006@sss.pgh.pa.us
Whole thread Raw
In response to Postgresql - Inline comment in VIEW Sql definition  (vikram singh chandel <vikramschandel@outlook.com>)
Responses Re: Postgresql - Inline comment in VIEW Sql definition
List pgsql-novice
vikram singh chandel <vikramschandel@outlook.com> writes:
> PostgreSQL does not allow to strore inline comments in view's SQL definition, because the CREATE VIEW statement is
parsed,and then analyzed to see what table and other database objects are referenced, and then the analyzed parse-tree
issaved. 

> However in our application we have designed one process which uses the tags that we mention within comments as part
ofCREATE VIEW definition. Things were going on good in Oracle database as it stored inline comments also. During
migrationwe are unable to port one of our functionality which have dependency on comments in View in Postgres it didn't
savethe comments. 

> Do we have anyway to get the actual VIEW text in Postgres db.

No.  You might be able to achieve something more or less equivalent
using COMMENT ON to attach comments to the view's columns.

            regards, tom lane


pgsql-novice by date:

Previous
From: vikram singh chandel
Date:
Subject: Postgresql - Inline comment in VIEW Sql definition
Next
From: Merlin Moncure
Date:
Subject: Re: Postgresql - Inline comment in VIEW Sql definition