Delimited identifier brhavior

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Delimited identifier brhavior
Date: 2010-11-11 23:03:50
Message-ID: 20101112.080350.91516597177315965.t-ishii@sraoss.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I' wondering if following delimited identifier brhavior is correct or
not:

test=# create table t1(i int);
create table t1(i int);
CREATE TABLE
test=# create table t1_foo(i int, j int);
create table t1_foo(i int, j int);
CREATE TABLE
test=# select * from t1;
select * from t1;
i
---
(0 rows)

test=# select * from t1_foo;
select * from t1_foo;
i | j
---+---
(0 rows)

test=# select * from "t1"_foo;
select * from "t1"_foo;
i
---
(0 rows)

It seems PostgreSQL thinks "t1"_foo is equivalent to t1. Is this an
expected behavior?
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Grittner 2010-11-11 23:12:30 Re: Delimited identifier brhavior
Previous Message Tom Lane 2010-11-11 22:21:34 Restructuring plancache.c API