Re: Missing FROM clause

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Missing FROM clause
Дата
Msg-id 412C4E3E.3020102@archonet.com
обсуждение исходный текст
Ответ на Missing FROM clause  (Ulrich Wisser <ulrich.wisser@relevanttraffic.se>)
Список pgsql-general
Ulrich Wisser wrote:
> Hi,
>
> after seeing some mysterious messages about missing from clauses I did
> turn on query logging. Unfortunately am I now more confused then before.
>
>
> Aug 25 09:22:38 balder postgres[25538]: [277-1] LOG:  query: SELECT *
> FROM LOGIN
> Aug 25 09:22:38 balder postgres[25538]: [277-2] where USERNAME='ulrich'
> Aug 25 09:22:47 balder postgres[25590]: [277] NOTICE:  Adding missing
> FROM-clause entry for table "partner"
>
> Please find the definition of my login table below.
>
> Why would pg add the partner table to the query?

The only things I can think are:
1. You have a view named "login" which is earlier in your search path.
2. The query is not terminated in some way and you have two queries
being merged.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Silvio Matthes
Дата:
Сообщение: Re: select ... where ='' does a seqscan [auf
Следующее
От: Gaetano Mendola
Дата:
Сообщение: Re: Problem to connect to the Windows Port