[pgsql-jp: 27350] Re: FreeBSD上のPostgreSQL では、position は予約語ですか?

SUGIMURA Takashi 杉村 貴士 sugimura @ infoscience.co.jp
2002年 9月 6日 (金) 20:34:53 JST


杉村です。こんばんは。

>FreeBSD 4.5-RELEASE #0
>psql (PostgreSQL) 7.1.2
>
>この組み合わせで、
># create table tb (position text);
>を実行すると
>ERROR:  parser: parse error at or near "position"
>とエラーが出ます。
>

4.6-stable + PostgreSQL 7.2.2 で試してみました。

---------------------------------------------------------
kei % uname -a
FreeBSD kei.xxxxxxxx 4.6-STABLE FreeBSD 4.6-STABLE #7: Sat Aug 24 21:44:07 JST 2002     root @ kei.xxxxxxxx:/usr/obj/usr/src/sys/KEI  i386
kei % psql --version
psql (PostgreSQL) 7.2.2
contains support for: readline, history, multibyte
Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
Portions Copyright (c) 1996, Regents of the University of California
Read the file COPYRIGHT or use the command \copyright to see the
usage and distribution terms.
kei % createdb hoge
CREATE DATABASE
kei % psql hoge
Welcome to psql, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help on internal slash commands
       \g or terminate with semicolon to execute query
       \q to quit

hoge=# create table tb (position text);
CREATE
hoge=# \d tb
         Table "tb"
  Column  | Type | Modifiers 
----------+------+-----------
 position | text | 

hoge=# 
---------------------------------------------------------

問題ないようです。

---
  ○/
<□   杉村 貴士 <sugimura @ jp.FreeBSD.org> 
 />           <sugimura @ YasudaKei.org> http://YasudaKei.org/
GnuPG Key fingerprint = AB4D 2DB4 E305 3ACB A0A8  9417 F4C3 1191 E866 65AC



pgsql-jp メーリングリストの案内