Re: Patch - Re: [HACKERS] view vs. inheritance hierarchy

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Patch - Re: [HACKERS] view vs. inheritance hierarchy
Дата
Msg-id 20140.941389198@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Patch - Re: [HACKERS] view vs. inheritance hierarchy  (Karel Zak - Zakkr <zakkr@zf.jcu.cz>)
Ответы Re: Patch - Re: [HACKERS] view vs. inheritance hierarchy
Список pgsql-hackers
Karel Zak - Zakkr <zakkr@zf.jcu.cz> writes:
> *** ruleutils.c.org    Mon Sep  6 00:55:28 1999
> --- ruleutils.c    Sun Sep 31 13:37:42 1999
> ***************
> *** 968,971 ****
> --- 968,973 ----
>                   strcat(buf, "\"");
>                   strcat(buf, rte->relname);
> +                 if (rte->inh)
> +                     strcat(buf, "*");
>                   strcat(buf, "\"");
>                   if (strcmp(rte->relname, rte->refname) != 0)
> ***************
> *** 973,976 ****
> --- 975,980 ----
>                       strcat(buf, " \"");
>                       strcat(buf, rte->refname);
> +                     if (rte->inh)
> +                         strcat(buf, "*");
>                       strcat(buf, "\"");
>                   }

>  Add we (Jan or Tom) this code to PostgreSQL source main? (Pease).

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...
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Karel Zak - Zakkr
Дата:
Сообщение: Patch - Re: [HACKERS] view vs. inheritance hierarchy
Следующее
От: "Andrij Korud"
Дата:
Сообщение: Trigger aborted on error