pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Prevent generating EEOP_AGG_STRICT_INPUT_CHECK operations when n
2+ messages / 1 participants
[nested] [flat]

* pgsql: Prevent generating EEOP_AGG_STRICT_INPUT_CHECK operations when n
@ 2018-11-03 23:08 Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Andres Freund @ 2018-11-03 23:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Prevent generating EEOP_AGG_STRICT_INPUT_CHECK operations when nargs == 0.

This only became a problem with 4c640f4f38, which didn't synchronize
the value agg_strict_input_check.nargs is set to, with the guard
condition for emitting the operation.

Besides such instructions being unnecessary overhead, currently the
LLVM JIT provider doesn't support them. It seems more sensible to
avoid generating such instruction than supporting them. Add assertions
to make it easier to debug a potential further occurance.

Discussion: https://postgr.es/m/2a505161-2727-2473-7c46-591ed108ac52@email.cz
Backpatch: 11-, like 4c640f4f38.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/793beab37e8f7ec6a4ef39395c6c866d7e4c7af5

Modified Files
--------------
src/backend/executor/execExpr.c     | 2 +-
src/backend/jit/llvm/llvmjit_expr.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)



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

* pgsql: Prevent generating EEOP_AGG_STRICT_INPUT_CHECK operations when n
@ 2018-11-03 23:08 Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Andres Freund @ 2018-11-03 23:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Prevent generating EEOP_AGG_STRICT_INPUT_CHECK operations when nargs == 0.

This only became a problem with 4c640f4f38, which didn't synchronize
the value agg_strict_input_check.nargs is set to, with the guard
condition for emitting the operation.

Besides such instructions being unnecessary overhead, currently the
LLVM JIT provider doesn't support them. It seems more sensible to
avoid generating such instruction than supporting them. Add assertions
to make it easier to debug a potential further occurance.

Discussion: https://postgr.es/m/2a505161-2727-2473-7c46-591ed108ac52@email.cz
Backpatch: 11-, like 4c640f4f38.

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6eb31cedb316d59bf9c63658868ff0fcddcc085a

Modified Files
--------------
src/backend/executor/execExpr.c     | 2 +-
src/backend/jit/llvm/llvmjit_expr.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)



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


end of thread, other threads:[~2018-11-03 23:08 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-11-03 23:08 pgsql: Prevent generating EEOP_AGG_STRICT_INPUT_CHECK operations when n Andres Freund <andres@anarazel.de>
2018-11-03 23:08 pgsql: Prevent generating EEOP_AGG_STRICT_INPUT_CHECK operations when n Andres Freund <andres@anarazel.de>

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