Re: [GENERAL] column names and dollar sign - Mailing list pgsql-general

From Tom Lane
Subject Re: [GENERAL] column names and dollar sign
Date
Msg-id 19120.1495055696@sss.pgh.pa.us
Whole thread Raw
In response to [GENERAL] column names and dollar sign  ("Armand Pirvu (home)" <armand.pirvu@gmail.com>)
Responses Re: [GENERAL] column names and dollar sign  ("Armand Pirvu (home)" <armand.pirvu@gmail.com>)
List pgsql-general
"Armand Pirvu (home)" <armand.pirvu@gmail.com> writes:
> Ran into the following statement

> CREATE TABLE test(
>     Date$ date,
>     Month_Number$ int,
>     Month$ varchar(10),
>     Year$ int
> );

> While it does execute, I wonder if the $ has any special meaning ?

Postgres thinks it's a valid identifier character, as long as it's
not the first character.  I don't believe it's standard SQL, but
we hacked it in a long time ago for compatibility with Oracle or
somebody like that.

            regards, tom lane


pgsql-general by date:

Previous
From: "Armand Pirvu (home)"
Date:
Subject: Re: [GENERAL] column names and dollar sign
Next
From: "Armand Pirvu (home)"
Date:
Subject: Re: [GENERAL] column names and dollar sign