pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Schaber <schabi@logix-tt.com>
To: Irina Gadassik <igadassik@standardbredcanada.ca>
Cc: pgsql-sql@postgresql.org
Subject: Re: pg reserved words
Date: Fri, 10 Mar 2006 14:09:57 +0100
Message-ID: <44117AA5.2020801@logix-tt.com> (raw)
In-Reply-To: <6.0.0.22.2.20060222102449.028482b0@messaging.ca.mci.com>
References: <6.0.0.22.2.20060222102449.028482b0@messaging.ca.mci.com>

Hi, Irina,

Irina Gadassik wrote:

> I am trying to create a table freeze and it seems "freeze" is a reserved
> word, but I don't see it in
> the list. Also in a different table I cann't create a column freeze.
> However it is possible in MySQL and Ingres.

It is a PostgreSQL specific reserved word, see
http://www.postgresql.org/docs/current/interactive/sql-keywords-appendix.html

However, it is possible to use it quoted:

postgres=# create table freeze (foo int);
ERROR:  syntax error at or near "freeze" at character 14
LINE 1: create table freeze (foo int);
                     ^
postgres=# create table "freeze" (foo int);
CREATE TABLE
postgres=# select * from "freeze";
 foo
-----
(0 rows)

postgres=# DROP TABLE "freeze" ;
DROP TABLE

HTH,
Markus


-- 
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org



view thread (3+ messages)

Message-ID: <44117AA5.2020801@logix-tt.com>
Permalink:  ../44117AA5.2020801@logix-tt.com/
Also on:    postgresql.org/message-id/44117AA5.2020801@logix-tt.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: schabi@logix-tt.com, igadassik@standardbredcanada.ca
  Subject: Re: pg reserved words
  In-Reply-To: <44117AA5.2020801@logix-tt.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