pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
npgsql - Npgsql2: [#1010666] CommandTimeout does gets reset to 20 when
2+ messages / 2 participants
[nested] [flat]

* npgsql - Npgsql2: [#1010666] CommandTimeout does gets reset to 20 when
@ 2009-07-02 14:57  User Fxjr <fxjr@pgfoundry.org>
  0 siblings, 0 replies; 2+ messages in thread

From: fxjr@pgfoundry.org @ 2009-07-02 14:57 UTC (permalink / raw)
  To: pgsql-committers

Log Message:
-----------

[#1010666] CommandTimeout does gets reset to 20 when a Connection object is assigned to it. Now, if a command timeout is set to NpgsqlCommand, it will respect this timeout regardless of the value set in connection string. Thanks Debabrata Das for testcase.

Modified Files:
--------------
    Npgsql2/src/Npgsql:
        NpgsqlCommand.cs (r1.41 -> r1.42)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/npgsql/Npgsql2/src/Npgsql/NpgsqlCommand.cs?r1=1.41&r...)




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Improve support for ExplainOneQuery() hook
@ 2024-03-10 23:42  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2024-03-10 23:42 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Improve support for ExplainOneQuery() hook

There is a hook called ExplainOneQuery_hook that gives modules the
possibility to plug into this code path, but, like utility.c for utility
statement execution, there is no corresponding "standard" routine in
the case of EXPLAIN executed for one Query.

This commit adds a new standard_ExplainOneQuery() in explain.c, which is
able to run explain on a non-utility Query without calling its hook.

Per the feedback received from a couple of hackers, this change gives
the possibility to cut a few hundred lines of code in some of the
popular out-of-core modules as these maintained a copy of
ExplainOneQuery(), adding custom extra information at the beginning or
the end of the EXPLAIN output.

Author: Mats Kindahl
Reviewed-by: Aleksander Alekseev, Jelte Fennema-Nio, Andrei Lepikhov
Discussion: https://postgr.es/m/CA+14427V_B4EAoC_o-iYYucRdMSOTfpuH9k-QbexffY1HYJBiA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a04ddd077e61096da660e1c2f205e0c8277f2dcd

Modified Files
--------------
src/backend/commands/explain.c | 106 +++++++++++++++++++++++------------------
src/include/commands/explain.h |   4 ++
2 files changed, 63 insertions(+), 47 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2024-03-10 23:42 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-07-02 14:57 npgsql - Npgsql2: [#1010666] CommandTimeout does gets reset to 20 when User Fxjr <fxjr@pgfoundry.org>
2024-03-10 23:42 pgsql: Improve support for ExplainOneQuery() hook Michael Paquier <michael@paquier.xyz>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox