BUG #2016: query working with 8.0 fails with 8.1

From: "Pit Mueller" <fmi-soft(at)gmx(dot)de>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #2016: query working with 8.0 fails with 8.1
Date: 2005-11-02 07:55:00
Message-ID: 20051102075500.F14F3F0C00@svr2.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 2016
Logged by: Pit Mueller
Email address: fmi-soft(at)gmx(dot)de
PostgreSQL version: 8.1 BETA4
Operating system: WinXP
Description: query working with 8.0 fails with 8.1
Details:

Using this query to get the primary key for a certain table:

SELECT p.conname AS constraint_name FROM pg_constraint p WHERE p.contype =
'p' AND p.conrelid = pg_class.oid AND pg_class.relname = 'mytablename'

leads to an error:

ERROR: missing FROM-clause entry for table "pg_class"

This query worked fine with 8.0.3.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Eisentraut 2005-11-02 13:59:36 Re: BUG #2016: query working with 8.0 fails with 8.1
Previous Message HOTTA Michihide 2005-11-02 05:58:53 BUG #2015: typo in sql_help