[pgsql-jp: 27351] Re: FreeBSD上のPostgreSQLでは、position は予約語ですか?
Shindo@AtSystem
shindo @ atsystem.jp
2002年 9月 6日 (金) 21:05:19 JST
進藤です。こんばんは。
お付き合いいただき有難うございます。
同じように実行してみました。こんな感じです。
========================================================================
% uname -a
FreeBSD black.atsystem.jp 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Mon Jan 28
14:31:5
6 GMT 2002 xxx @ yy.zz.com:/usr/src/sys/compile/GENERIC i386
% psql --version
psql (PostgreSQL) 7.1.2
contains readline, history, multibyte support
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.
% createdb hoge
CREATE DATABASE
% 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);
ERROR: parser: parse error at or near "position"
hoge=#
========================================================================
---- Snip Snip ----
>杉村です。こんばんは。
>
>>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
---- Snip Snip ----
」」」」」」」」」」」」」」」」
」
」 進藤寿則@アットシステム
」 shindo@ atsystem.jp
」 shindo@ sasoh.ne.jp
」 Tel 022-385-1593
」 Fax 022-385-1595
」
pgsql-jp メーリングリストの案内