Re: missing history for pg_exec_query_string()

Поиск
Список
Период
Сортировка
От Cédric Villemain
Тема Re: missing history for pg_exec_query_string()
Дата
Msg-id AANLkTik3ej+wYOHuZ+LiH9WqHppM+QBvp6qvmg1yHDrw@mail.gmail.com
обсуждение исходный текст
Ответ на missing history for pg_exec_query_string()  (Jaime Casanova <jaime@2ndquadrant.com>)
Ответы Re: missing history for pg_exec_query_string()  (Jaime Casanova <jaime@2ndquadrant.com>)
Список pgsql-hackers
2011/3/23 Jaime Casanova <jaime@2ndquadrant.com>:
> Hi,
>
> I'm looking for the history of pg_exec_query_string() and found that
> it dissapear in 7.4, so i tried to look at "git log" to find out if it
> was renamed or removed completely and found only this 3 commits:
>
http://git.postgresql.org/gitweb?p=postgresql.git&a=search&h=cd48aa0e9636c6225d34f366a9d71e7fc118c9f3&st=commit&s=pg_exec_query_string,
> and none of them removes or renames it...
>
> i'm pretty sure exec_simple_query() is what we used to call
> pg_exec_query_string() but i had to look for functions with similar
> names and then compare the code, not very elegant :(
>
> any idea what happens to this part of the history?

This :
git log --pretty=oneline -S'pg_exec_query_string' origin/REL7_4_STABLE
git show  de28dc9a04c4df5d711815b7a518501b43535a26

give me the answer :

commit de28dc9a04c4df5d711815b7a518501b43535a26
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date:   Fri May 2 20:54:36 2003 +0000
   Portal and memory management infrastructure for extended query protocol.   Both plannable queries and utility
commandsare now always executed   within Portals, which have been revamped so that they can handle the   load (they
usedto be good only for single SELECT queries).  Restructure   code to push command-completion-tag selection logic out
ofpostgres.c,   so that it won't have to be duplicated between simple and extended queries.   initdb forced due to
additionof a field to Query nodes. 


wonderful git :)

>
> --
> Jaime Casanova         www.2ndQuadrant.com
> Professional PostgreSQL: Soporte y capacitación de PostgreSQL
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>



--
Cédric Villemain               2ndQuadrant
http://2ndQuadrant.fr/     PostgreSQL : Expertise, Formation et Support


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

Предыдущее
От: Jaime Casanova
Дата:
Сообщение: missing history for pg_exec_query_string()
Следующее
От: Andrew Hammond
Дата:
Сообщение: Query to generate CREATE INDEX statement from