Re: [HACKERS] Re: Mirroring a DB

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: hackers(at)postgreSQL(dot)org, swalton(at)galileo(dot)csun(dot)edu, Karl DeBisschop <kdebisschop(at)range(dot)infoplease(dot)com>
Subject: Re: [HACKERS] Re: Mirroring a DB
Date: 1999-12-11 18:22:03
Message-ID: 24121.944936523@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <e99re41(at)DoCS(dot)UU(dot)SE> writes:
> Could the God of Rules please comment on this? It seems to be a deficiency
> in the get_rule_def (sp?) backend function. Perhaps to play it safe all
> attributes should be fully qualified, but that's probably not as easy as
> it sounds.

I'm not the god of rules, but I have messed with that code. Current
sources will put table prefixes on every var in a rule if more than one
table appears in the rule's rangelist. I think this should be
sufficient, but it's hard to tell from this incomplete example;
are you actually complaining about some special case that arises when
a column has the same name as its table?

It would be nice to see the original view definition (plus enough table
definitions to let us create the rule without guessing).

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 1999-12-11 18:29:59 Re: [HACKERS] Last thoughts about LONG
Previous Message Tom Lane 1999-12-11 18:13:15 Re: [HACKERS] LONG