Re: [PATCHES] libpq events patch (with sgml docs)
От | Tom Lane |
---|---|
Тема | Re: [PATCHES] libpq events patch (with sgml docs) |
Дата | |
Msg-id | 454.1221626213@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: [PATCHES] libpq events patch (with sgml docs) (Andrew Chernow <ac@esilo.com>) |
Ответы |
Re: [PATCHES] libpq events patch (with sgml docs)
|
Список | pgsql-hackers |
Andrew Chernow <ac@esilo.com> writes: > Yeah. Good point. I fixed it to always fire events. Applied with editorial revisions --- I don't think I changed any functionality, but I fixed a number of corner-case bugs and editorialized on style a bit. The general question of symmetry between RESULTCREATE and RESULTDESTROY callbacks is still bothering me. As committed, PQmakeEmptyPGresult will copy events into its result, but not fire RESULTCREATE for them ... but they'll get RESULTDESTROY when it's deleted. Is that what we want? I don't have a lot of faith that PQgetResult is the only place inside libpq that needs to fire RESULTCREATE, either. Now, it's questionable how tense we need to be about that as long as event proc failure aborts calling of later event procs. That means that procs have to be robust against getting DESTROY with no CREATE calls in any case. Should we try to make that less uncertain? regards, tom lane
В списке pgsql-hackers по дате отправления: