Re: Missing FROM clause - Mailing list pgsql-general

From Richard Huxton
Subject Re: Missing FROM clause
Date
Msg-id 412C4E3E.3020102@archonet.com
Whole thread Raw
In response to Missing FROM clause  (Ulrich Wisser <ulrich.wisser@relevanttraffic.se>)
List 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 by date:

Previous
From: Silvio Matthes
Date:
Subject: Re: select ... where ='' does a seqscan [auf
Next
From: Gaetano Mendola
Date:
Subject: Re: Problem to connect to the Windows Port