Re: Delete statement does not work with PostgreSQL 8.0.1

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Delete statement does not work with PostgreSQL 8.0.1
Дата
Msg-id 4385782A.30200@archonet.com
обсуждение исходный текст
Ответ на Delete statement does not work with PostgreSQL 8.0.1  (Ledina Hido <lh1101@ecs.soton.ac.uk>)
Ответы Re: Delete statement does not work with PostgreSQL 8.0.1  (Ledina Hido <lh1101@ecs.soton.ac.uk>)
Список pgsql-general
Ledina Hido wrote:
> Hi,
>
> I have just today installed the new version of PostgreSQL (8.1.0), and
> my old code seems to have stopped working.
>
> I am basically trying to delete a row from a table:
>
> DELETE FROM "CON" WHERE "ref"='CON5';
>
> I have checked and CON5 is definitively in the CON table. I tried using
> JDBC, pgAdminIII and command line but it doesn't seem to work. I get a
> message saying 0 rows have been affected, as if the item was not in the
> table. Am I doing something wrong? Has the syntax changed or is this
> just a bug?

Well, if DELETE had stopped working then 8.1 would never have been
released, so there's something more subtle going on.

1. What happens if you run SELECT * FROM "CON" WHERE "ref"='CON5';
2. What does an "explain analyse" show for that?
3. If it's using an index try: SET enable_indexscan=false; then run
query 1 again.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: How to commuciate between two server in postgress
Следующее
От: "Frank Motzkat/IC3S AG"
Дата:
Сообщение: declare function with IN and OUT parameter as well as refcursor