Re: [HACKERS] VIEW definitions broken in 6.5.0

From: wieck(at)debis(dot)com (Jan Wieck)
To: reedstrm(at)wallace(dot)ece(dot)rice(dot)edu (Ross J(dot) Reedstrom)
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] VIEW definitions broken in 6.5.0
Date: 1999-07-20 10:47:49
Message-ID: m116XR7-0003kvC@orion.SAPserv.Hamburg.dsh.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> Hey hackers -
> I don't know if this is fixed in 6.5.1 or not, but the definition field
> in the pg_views system table is broken in 6.5.0, and this breaks view
> editing in pgaccess. The problem is that table qualifications are left
> off the fieldnames in both the SELECT clause and the WHERE clause. Minimal
> example given below:

Oh,

I see the problem. It is because the rule backparsing utility
prints the relation name only if it is referenced by another
name (... FROM t1 X, ...).

I'll change it in the v6.5 tree to print it allways. For v6.6
I'll work on rule recompilation which requires storing the
original query text and will avoid that problem entirely.

Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#========================================= wieck(at)debis(dot)com (Jan Wieck) #

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 1999-07-20 12:06:14 Re: [HACKERS] Contributing
Previous Message Thomas Lockhart 1999-07-20 05:50:31 CREATE VERSION