Re: Can't access table to describe, drop, or select, but it

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Can't access table to describe, drop, or select, but it
Дата
Msg-id 20030919083048.R212@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Can't access table to describe, drop, or select, but it does exist  ("Josh Eno" <Josh@always24x7.com>)
Список pgsql-bugs
On Thu, 18 Sep 2003, Josh Eno wrote:

> The reason I'd never noticed the table is because in doing a \d it
> doesn't show up in the table list.  If I try to do a \d TABLE_NAME, I
> can use <tab> to autocomplete the name, but then it says the table
> doesn't exist.  I can't select any of those 40,000 rows while I'm in the
> database, and I can't drop it, either.  The only evidence of the table I
> can find while I'm actually in the database is by doing a select * from
> pg_tables, and it shows up as the following:

You need to say things like:
\d "ROOT_U_QUICK_LOOKUP"
or
select * from "ROOT_U_QUICK_LOOKUP"
(note the double quotes to prevent casefolding).

It's interesting that \d FOO
gives an error message referencing "FOO"
since it's actually looking for a table that's been
case-folded.  I think the error message is incorrect.

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Josh Eno"
Дата:
Сообщение: Can't access table to describe, drop, or select, but it does exist
Следующее
От: Edmund Bacon
Дата:
Сообщение: create temporary sequence and ecpg