Re: What is the meaning of the N string operator ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Danilo Fortunato <danilo(dot)fortunato(dot)2(at)gmail(dot)com>
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: What is the meaning of the N string operator ?
Date: 2015-06-07 21:37:21
Message-ID: 23797.1433713041@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

Danilo Fortunato <danilo(dot)fortunato(dot)2(at)gmail(dot)com> writes:
> Can anybody explain the meaning of the N string operator ?

The SQL standard says that N'foo' is a literal of the data type NATIONAL
CHARACTER. PG supports this syntax (and the type name) but treats it the
same as plain character/varchar.

> Is there a section in the PostgreSQL documentation that describes it ?

I don't see it offhand. I think it's pretty much useless/deprecated
anyway so I'm not sure it's worth documenting.

regards, tom lane

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message liuyuanyuan 2015-06-11 02:41:06 Failed in moving database objects to another tablespace
Previous Message Andreas Seltenreich 2015-06-07 21:32:43 Re: What is the meaning of the N string operator ?