Re: [DOCS] What is the meaning of the N string operator ?

2015-06-07 Thread Tom Lane
Danilo Fortunato 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 Po

Re: [DOCS] What is the meaning of the N string operator ?

2015-06-07 Thread Andreas Seltenreich
Danilo Fortunato writes: > Can anybody explain the meaning of the N string operator ? > Is there a section in the PostgreSQL documentation that describes it ? I couldn't find it in the manual either, but using it seems to yield values of type char instead of varchar/text: , | scratch=# selec

[DOCS] What is the meaning of the N string operator ?

2015-06-07 Thread Danilo Fortunato
In the SQL code related to Greenplum Database (which is based on PostgreSQL) generated by a query and reporting tool, a noticed a "N" operator put before a lot of strings. For example: case when column_a <> N'#' then column_a when column_b <> N'#' then column_b else NULL end I exe