pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: postgresql <pgsql@symcom.com>
To: PgSQL-SQL <pgsql-sql@postgresql.org>
Subject: Re: underscore problem
Date: Tue, 27 Feb 2001 13:32:32 -0000
Message-ID: <003701c0a0c1$be4e2ae0$1001a8c0@archonet.com> (raw)
References: <200102271236.f1RCasx40381@mail.postgresql.org>

From: "postgresql" <pgsql@symcom.com>


> Is there anywhere in the docs that says we should not use an
> underscore in a table name?
>
> select acode from FC_Client_Info where jobno = '1234';
> fails with a warning that fc_client_info does not exist
> notice the lower case. If I quote the table
>
> select acode from "FC_Client_Info" where jobno = '1234';
> the select works fine

It's the case not the underscore. PG lower-cases table/field names both on
creation and on queries. You can create/access mixed-case tables by quoting
them, as you've discovered.

This usually crops up converting from a different DB to Postgresql.

- Richard Huxton




view thread (3+ messages)  latest in thread

Message-ID: <003701c0a0c1$be4e2ae0$1001a8c0@archonet.com>
Permalink:  ../003701c0a0c1$be4e2ae0$1001a8c0@archonet.com/
Also on:    postgresql.org/message-id/003701c0a0c1$be4e2ae0$1001a8c0@archonet.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: dev@archonet.com, pgsql@symcom.com
  Subject: Re: underscore problem
  In-Reply-To: <003701c0a0c1$be4e2ae0$1001a8c0@archonet.com>
  References: <200102271236.f1RCasx40381@mail.postgresql.org> <003701c0a0c1$be4e2ae0$1001a8c0@archonet.com>

* 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