pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedpg reserved words
3+ messages / 3 participants
[nested] [flat]
* pg reserved words
@ 2006-02-22 15:27 Irina Gadassik <igadassik@standardbredcanada.ca>
2006-03-01 03:05 ` Re: pg reserved words Michael Glaesemann <grzm@myrealbox.com>
2006-03-10 13:09 ` Re: pg reserved words Markus Schaber <schabi@logix-tt.com>
0 siblings, 2 replies; 3+ messages in thread
From: Irina Gadassik @ 2006-02-22 15:27 UTC (permalink / raw)
To: pgsql-sql
Hello,
I need some help.
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.
Thank you,
Irina
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pg reserved words
2006-02-22 15:27 pg reserved words Irina Gadassik <igadassik@standardbredcanada.ca>
@ 2006-03-01 03:05 ` Michael Glaesemann <grzm@myrealbox.com>
1 sibling, 0 replies; 3+ messages in thread
From: Michael Glaesemann @ 2006-03-01 03:05 UTC (permalink / raw)
To: Irina Gadassik <igadassik@standardbredcanada.ca>; +Cc: pgsql-sql
On Feb 23, 2006, at 0:27 , 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.
http://www.postgresql.org/docs/current/interactive/sql-keywords-
appendix.html
I see FREEZE right between FREE and FROM. It's not an SQL keyword,
but it is used in PostgreSQL withe VACUUM command.
http://www.postgresql.org/docs/current/interactive/sql-vacuum.html
Hope this helps.
Michael Glaesemann
grzm myrealbox com
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pg reserved words
2006-02-22 15:27 pg reserved words Irina Gadassik <igadassik@standardbredcanada.ca>
@ 2006-03-10 13:09 ` Markus Schaber <schabi@logix-tt.com>
1 sibling, 0 replies; 3+ messages in thread
From: Markus Schaber @ 2006-03-10 13:09 UTC (permalink / raw)
To: Irina Gadassik <igadassik@standardbredcanada.ca>; +Cc: pgsql-sql
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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2006-03-10 13:09 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-02-22 15:27 pg reserved words Irina Gadassik <igadassik@standardbredcanada.ca>
2006-03-01 03:05 ` Michael Glaesemann <grzm@myrealbox.com>
2006-03-10 13:09 ` Markus Schaber <schabi@logix-tt.com>
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