Обсуждение: Bug in Inherit feature

Поиск
Список
Период
Сортировка

Bug in Inherit feature

От
"Obe, Regina"
Дата:
I was using the inherit feature in snapshot build 9/8 rev: 7457:7458

It works fine if the table I am inheriting from is in the public schema,
but if its in any other schema, it seems to quote the schema incorrectly
so it fails to find the table.

Example

ALTER TABLE census_ma_2006.arealandmarks INHERIT
"census_2006.arealandmarks";

so then I have to manually change the statement to

ALTER TABLE census_ma_2006.arealandmarks INHERIT
"census_2006"."arealandmarks";

Thanks,
Regina
-----------------------------------------
The substance of this message, including any attachments, may be
confidential, legally privileged and/or exempt from disclosure
pursuant to Massachusetts law. It is intended
solely for the addressee. If you received this in error, please
contact the sender and delete the material from any computer.


Re: Bug in Inherit feature

От
Guillaume Lelarge
Дата:
Hi,

Obe, Regina a écrit :
> I was using the inherit feature in snapshot build 9/8 rev: 7457:7458
> 
> It works fine if the table I am inheriting from is in the public schema,
> but if its in any other schema, it seems to quote the schema incorrectly
> so it fails to find the table.
> 
> Example
> 
> ALTER TABLE census_ma_2006.arealandmarks INHERIT
> "census_2006.arealandmarks";
> 
> so then I have to manually change the statement to
> 
> ALTER TABLE census_ma_2006.arealandmarks INHERIT
> "census_2006"."arealandmarks";
> 

You're right, this was a bug in my previous patch. I fixed it.

Thanks.


-- 
Guillaume.http://www.postgresqlfr.orghttp://dalibo.com