Jaime Casanova wrote:
> On Fri, Apr 10, 2009 at 11:47 PM, Abhijit Menon-Sen <a...@oryx.com> wrote:
> > Hi.
> >
> > There's a TODO item about making COMMENT ON accept an expression.
> 
> really? what's the use case for that?

I assume it is for creating comments using things like || or maybe
CURRENT_TIMESTAMP:

        test=> CREATE TABLE test (x INT);
        CREATE TABLE
        test=> COMMENT ON TABLE test IS 'asdf';
        COMMENT
        test=> COMMENT ON TABLE test IS 'asdf' || 'bb';
        ERROR:  syntax error at or near "||"
        LINE 1: COMMENT ON TABLE test IS 'asdf' || 'bb';

-- 
  Bruce Momjian  <br...@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to