Search Postgresql Archives

Re: comments in argument list of plpgsql get stripped?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Adrian,

>> II) Having PostgreSQL issuing a NOTICE that "comments get stripped" if you
>> use comments somewhere where PostgreSQL accepts them, but discards them
>> silently?
> 
> I think that is covered by this:
> http://www.postgresql.org/docs/9.0/interactive/sql-syntax-lexical.html#SQL-SYNTAX-COMMENTS
> "A comment is removed from the input stream before further syntax analysis and is effectively replaced by whitespace."

Now that you mention it and I read that paragraph, it is obvious. I was far too focused on the chapters on COMMENT ON and CREATE FUNCTION, so I didn't think about the possibility that there might be a paragraph on in-line comments, too --- as the syntax is well-known and so to say standard to nearly everyone who writes code, so it comes automagically without having to think about it (or read...). So it was clearly my fault.

Best regards,
  Ralph


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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux