pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedODBC - adding missing FROM clause entry
4+ messages / 4 participants
[nested] [flat]
* ODBC - adding missing FROM clause entry
@ 2002-12-31 14:06 Martin_Hurst@dom.com
2002-12-31 23:29 ` Re: ODBC - adding missing FROM clause entry Hiroshi Inoue <Inoue@tpf.co.jp>
0 siblings, 1 reply; 4+ messages in thread
From: Martin_Hurst@dom.com @ 2002-12-31 14:06 UTC (permalink / raw)
To: pgsql-odbc
I'm getting this message when I connect from my Win95 pc to my Linux server
running postgres 7.3.
I'm using the latest postgres odbc driver to connect.
The Win95 connection can see and list the tables on the Linux server, but
when I try to open and display the rows, the interface hangs and freezes.
Thanks, for any help and feedback.
-Martin
-------------------------------------------------------
Notice: Adding missing FROM - clause entry fro table "pg_namespace"
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: ODBC - adding missing FROM clause entry
2002-12-31 14:06 ODBC - adding missing FROM clause entry Martin_Hurst@dom.com
@ 2002-12-31 23:29 ` Hiroshi Inoue <Inoue@tpf.co.jp>
0 siblings, 0 replies; 4+ messages in thread
From: Hiroshi Inoue @ 2002-12-31 23:29 UTC (permalink / raw)
To: Martin_Hurst@dom.com; +Cc: pgsql-odbc
> -----Original Message-----
> From: Martin_Hurst@dom.com
>
> I'm getting this message when I connect from my Win95 pc to my
> Linux server
> running postgres 7.3.
> I'm using the latest postgres odbc driver to connect.
It's not an error message.
> The Win95 connection can see and list the tables on the Linux server, but
> when I try to open and display the rows, the interface hangs and freezes.
Could you send me the Mylog debug output ?
regards,
Hiroshi Inoue
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: ODBC - adding missing FROM clause entry
@ 2003-01-02 08:31 Tambet Matiisen <t.matiisen@aprote.ee>
2003-01-02 22:36 ` Re: ODBC - adding missing FROM clause entry Bruce Momjian <pgman@candle.pha.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Tambet Matiisen @ 2003-01-02 08:31 UTC (permalink / raw)
To: Martin_Hurst@dom.com; pgsql-odbc
This is quite odd feature in PostgreSQL. Try this:
select pg_database.datname from pg_user;
You will get all database names, each repeated by number of users and a note:
NOTICE: Adding missing FROM-clause entry for table "pg_database"
You see, in SELECT you referred a table that is not in FROM clause and PostgreSQL is adding it automatically! Seems pretty confusing to me, but I didn't dig any further, why is it needed or when it this was included.
Tambet
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: ODBC - adding missing FROM clause entry
2003-01-02 08:31 Re: ODBC - adding missing FROM clause entry Tambet Matiisen <t.matiisen@aprote.ee>
@ 2003-01-02 22:36 ` Bruce Momjian <pgman@candle.pha.pa.us>
0 siblings, 0 replies; 4+ messages in thread
From: Bruce Momjian @ 2003-01-02 22:36 UTC (permalink / raw)
To: Tambet Matiisen <t.matiisen@aprote.ee>; +Cc: Martin_Hurst@dom.com; pgsql-odbc
Tambet Matiisen wrote:
>
> This is quite odd feature in PostgreSQL. Try this:
>
> select pg_database.datname from pg_user;
>
> You will get all database names, each repeated by number of
> users and a note:
>
> NOTICE: Adding missing FROM-clause entry for table "pg_database"
>
> You see, in SELECT you referred a table that is not in FROM
> clause and PostgreSQL is adding it automatically! Seems pretty
> confusing to me, but I didn't dig any further, why is it needed
> or when it this was included.
This feature came from the Berkeley days, so we have had it for a long
time. In fact, the ODBC code was using it for a few queries which I
just fixed.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2003-01-02 22:36 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-12-31 14:06 ODBC - adding missing FROM clause entry Martin_Hurst@dom.com
2002-12-31 23:29 ` Hiroshi Inoue <Inoue@tpf.co.jp>
2003-01-02 08:31 Re: ODBC - adding missing FROM clause entry Tambet Matiisen <t.matiisen@aprote.ee>
2003-01-02 22:36 ` Bruce Momjian <pgman@candle.pha.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox