pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: tosites@me.com
To: pgsql-docs@postgresql.org
Subject: Table names in upper case
Date: Wed, 12 Oct 2016 18:12:33 +0000
Message-ID: <20161012181233.1397.66615@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/9.6/static/sql-syntax-lexical.html
Description:

Although this documentation says that &quot;Key words and unquoted identifiers
are case insensitive.&quot; it is not possible to use table or column names in
upper case.

If the table or column name was in upper case it is necessary use quotes to
Postgres accept. Exactly the opposite case showed at documentation.

For example:

CREATE TABLE CLIENT(ID INTEGER, NAME TEXT);

SELECT * FROM CLIENT;   -- an error will be launched

SELECT * FROM &quot;CLIENT&quot;;   -- works

But:

CREATE TABLE client(id INTEGER, name TEXT);

SELECT * FROM CLIENT;   -- works

It is, at least, strange.

Cheers.



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


view thread (2+ messages)  latest in thread

Message-ID: <20161012181233.1397.66615@wrigleys.postgresql.org>
Permalink:  ../20161012181233.1397.66615@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20161012181233.1397.66615@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: tosites@me.com
  Subject: Re: Table names in upper case
  In-Reply-To: <20161012181233.1397.66615@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox