Re: Extensions, this time with a patch
От | Dimitri Fontaine |
---|---|
Тема | Re: Extensions, this time with a patch |
Дата | |
Msg-id | m2y6a08n3n.fsf@2ndQuadrant.fr обсуждение исходный текст |
Ответ на | Re: Extensions, this time with a patch (Alvaro Herrera <alvherre@commandprompt.com>) |
Список | pgsql-hackers |
Alvaro Herrera <alvherre@commandprompt.com> writes: > Okay. I looked at the code and I have to admit that it seems awkward to > have pg_dump left-joining everything against pg_depend and checking for > NULLs. I wondered if there was a simpler way to go about it, perhaps > using EXCEPT? No specific proposal though. Thanks for your time and review! The LEFT JOIN WHERE right IS NULL is the first thing that I though about, if it looks ugly I'll rework the queries, ok. > Maybe it would be worthwhile to split the parts that parse a file and > execute from a file, and submit separately. It is obviously > self-contained and serves a useful purpose on its own. It also forces > you to think harder about renaming the parse function :-) The cfparser code is extracted from xlog.c and I left it as-is, so the function is till named parseRecoveryCommandFileLine. If cfparser has a file name is ok, I could rename the function cfParseOneLine? I'll send separate patches for that and pg_execute_from_file() then. Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support
В списке pgsql-hackers по дате отправления: