Re: Patch - Re: [HACKERS] view vs. inheritance hierarchy - Mailing list pgsql-hackers

From Karel Zak - Zakkr
Subject Re: Patch - Re: [HACKERS] view vs. inheritance hierarchy
Date
Msg-id Pine.LNX.3.96.991101095155.11387B-100000@ara.zf.jcu.cz
Whole thread Raw
In response to Re: Patch - Re: [HACKERS] view vs. inheritance hierarchy  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Patch - Re: [HACKERS] view vs. inheritance hierarchy  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers


On Sun, 31 Oct 1999, Tom Lane wrote:
> 
> That looks about like the right thing to do, but I wonder whether the
> "*" doesn't need to go *outside* the quote marks around the table name?
> Seems like it would be taken as a name character if inside...

grrr! - it is (my) novice's idiocy...
Sorry Tom, I forget that between the quote is the table name.. next time I
first test & check my patches :-) Now is it good? (I test it this time.) 
                   Karel


*** ruleutils.c.org    Mon Sep  6 00:55:28 1999
--- ruleutils.c    Mon Nov  1 09:26:03 1999
***************
*** 969,972 ****
--- 969,974 ----                 strcat(buf, rte->relname);                 strcat(buf, "\"");
+                 if (rte->inh)
+                     strcat(buf, "*");                 if (strcmp(rte->relname, rte->refname) != 0)                 {
***************
*** 974,977 ****
--- 976,981 ----                     strcat(buf, rte->refname);                     strcat(buf, "\"");
+                     if (rte->inh)
+                         strcat(buf, "*");                 }             }



pgsql-hackers by date:

Previous
From: "Andrij Korud"
Date:
Subject: Getting oid of just inserted record
Next
From: "D'Arcy" "J.M." Cain
Date:
Subject: Re: [HACKERS] Trigger aborted on error