Identifying comments

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Identifying comments
Date: 2019-01-17 15:37:12
Message-ID: alpine.LNX.2.20.1901170729370.13573@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I know that "--" has been the single-line comment identifier since SQL was
implemented by IBM on mainframes using Hollerith cards. Today, some RDBMSs
also allow the C comment indentifier pair, /* ... */.

The postgres10 manual when searched for 'comments' presents the double
hyphens and, in Section 4.1.3, on the top line of page 39, I read that "--
and /* cannot appear anywhere in an operator name, since they will be taken
as the start of a comment."

I want only to confirm that I can use /* ... */ for multiline comments in my
DDL and DML scripts.

TIA,

Rich

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2019-01-17 15:39:30 Re: Identifying comments [ANSWERED]
Previous Message David G. Johnston 2019-01-17 15:32:41 Re: pgbouncer