Re: how to switch a view easily?

[prev] [thread] [next] [Date index for 2005/04/20]

From: merlyn (Randal L. Schwartz)
Subject: Re: how to switch a view easily?
Date: 05:11 on 20 Apr 2005
>>>>> "Brad" == Brad Bowman <bsb@xxxxxx.xxx> writes:

>> Certainly I can't be the first one to need this. :)

Brad> You're not.

Brad> I never solve it though, sorry to disappoint. :)

Brad> One idea I had but never delved deeply into was
Brad> dynamically changing the postgres schema search path.
Brad> Does that sound like a possible solution?

No, but hear me out... I think I have a solution.

I can override "transform_sql" to look for "booking"
and change it to
"(select * from booking where cancelled_date is not null) as booking".

This seems to work, even when I have funky natural joins and stuff
around it.

Has anyone tried overriding transform_sql?  Am I crazy?

        -- 
        Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@xxxxxxxxxx.xxx> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

(message missing)

how to switch a view easily?
merlyn (Randal L. Schwartz) 04:21 on 20 Apr 2005

Re: how to switch a view easily?
merlyn (Randal L. Schwartz) 05:11 on 20 Apr 2005

Re: how to switch a view easily?
Tony Bowden 08:26 on 20 Apr 2005

Re: how to switch a view easily?
Dana Hudes 12:07 on 20 Apr 2005

Re: how to switch a view easily?
Mark Addison 13:12 on 20 Apr 2005

Re: how to switch a view easily?
merlyn (Randal L. Schwartz) 13:55 on 20 Apr 2005

Solved (thank you postgresql!) was Re: how to switch a view easily?
merlyn (Randal L. Schwartz) 16:30 on 20 Apr 2005

multi-column PK and has_many
Barry Moore 18:21 on 20 Apr 2005

Re: multi-column PK and has_many
Perrin Harkins 18:41 on 20 Apr 2005

Re: Solved (thank you postgresql!) was Re: how to switch a view easily?
merlyn (Randal L. Schwartz) 17:10 on 20 Apr 2005

Generated at 09:29 on 27 Apr 2005 by mariachi v0.52