ERROR: failed to build any 3-way joins

Started by Jehan-Guillaume de Rorthaisalmost 16 years ago3 messagesbugs
Jump to latest

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

A user reported us the following bug under phpPgAdmin with 9.0beta1, but it seems it comes from backend.

Here is how to reproduce the bug:

================>
postgres=# SELECT version();
version
- ----------------------------------------------------------------------------------------------
PostgreSQL 9.0beta1 on i686-pc-linux-gnu, compiled by GCC gcc (Debian 4.4.3-2) 4.4.3, 32-bit
(1 row)

postgres=# SELECT rolname FROM pg_catalog.pg_roles AS r, pg_auth_members AS m
WHERE r.oid=m.roleid
AND member IN (
SELECT oid FROM pg_catalog.pg_roles
WHERE rolname='postgres')
ORDER BY rolname;
ERROR: failed to build any 3-way joins
<================

- --
Jehan-Guillaume (ioguix) de Rorthais
DBA
http://www.dalibo.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkv5i+AACgkQXu9L1HbaT6LRNgCgxD2+d7V/+CPLdXdqoLLyQCF5
CdsAn0grUp3bXjOazRz111wTJDxa4ff6
=9qaz
-----END PGP SIGNATURE-----

#2Joshua Tolley
eggyknap@gmail.com
In reply to: Jehan-Guillaume de Rorthais (#1)
Re: ERROR: failed to build any 3-way joins

On Sun, May 23, 2010 at 2:11 PM, Jehan-Guillaume (ioguix) de Rorthais
<jgdr@dalibo.com> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

A user reported us the following bug under phpPgAdmin with 9.0beta1, but it seems it comes from backend.

Here is how to reproduce the bug:

================>
postgres=# SELECT version();
                                          version
- ----------------------------------------------------------------------------------------------
 PostgreSQL 9.0beta1 on i686-pc-linux-gnu, compiled by GCC gcc (Debian 4.4.3-2) 4.4.3, 32-bit
(1 row)

postgres=# SELECT rolname FROM pg_catalog.pg_roles AS r, pg_auth_members AS m
WHERE r.oid=m.roleid
AND member IN (
SELECT oid FROM pg_catalog.pg_roles
WHERE rolname='postgres')
ORDER BY rolname;
ERROR:  failed to build any 3-way joins
<================

Just a guess, but I'd bet this was fixed by the very recent commit to
fix this: http://archives.postgresql.org/pgsql-hackers/2010-05/msg01203.php

--
Joshua Tolley / eggyknap
End Point Corporation

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Joshua Tolley (#2)
Re: ERROR: failed to build any 3-way joins

Joshua Tolley <eggyknap@gmail.com> writes:

On Sun, May 23, 2010 at 2:11 PM, Jehan-Guillaume (ioguix) de Rorthais
<jgdr@dalibo.com> wrote:

Here is how to reproduce the bug:
postgres=# SELECT rolname FROM pg_catalog.pg_roles AS r, pg_auth_members AS m
WHERE r.oid=m.roleid
AND member IN (
SELECT oid FROM pg_catalog.pg_roles
WHERE rolname='postgres')
ORDER BY rolname;
ERROR: �failed to build any 3-way joins

Just a guess, but I'd bet this was fixed by the very recent commit to
fix this: http://archives.postgresql.org/pgsql-hackers/2010-05/msg01203.php

Worksforme in CVS HEAD, so apparently it is that same bug. Thanks for
the report though!

regards, tom lane