Re: Bug with view definitions? - Mailing list pgsql-hackers

From Andreas Pflug
Subject Re: Bug with view definitions?
Date
Msg-id 40EA59E5.8080709@pse-consulting.de
Whole thread Raw
In response to Re: Bug with view definitions?  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Responses Re: Bug with view definitions?  (Andreas Pflug <pgadmin@pse-consulting.de>)
List pgsql-hackers
Christopher Kings-Lynne wrote:

>>>  need_paren = (PRETTY_PAREN(context) ?
>>>                                !IsA(op->rarg, RangeTblRef) : true);
>>
>>
>>
>> In a quick glance this code seems close to completely brain dead :-(
>> For one thing, why isn't it making separate determinations about whether
>> the left and right inputs of the UNION (resp INTERSECT or EXCEPT)
>> operator need to be parenthesized?  After that maybe we could figure out
>> what the individual decisions need to be.
>
>
> So what are we going to do about it?
>
> Was it one of the pgAdmin guys who wrote it in the first place?

Yep, me. It was still on my radar to fix; not surprising, Tom was faster.

I'll have a look at the "braindead" issue.

Regards,



pgsql-hackers by date:

Previous
From: "Zeugswetter Andreas SB SD"
Date:
Subject: Re: Point in Time Recovery
Next
From: "Zeugswetter Andreas SB SD"
Date:
Subject: Re: subtransactions and FETCH behaviour (was Re: PREPARE and transactions)