pg.ddx.io pgsql-docs@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Bruce Momjian <bruce@momjian.us>
To: Daniel Westermann (DWE) <daniel.westermann@dbi-services.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Wrong example in the bloom documentation
Date: Mon, 26 Oct 2020 17:04:09 -0400
Message-ID: <20201026210409.GA4951@momjian.us> (raw )
In-Reply-To: <GVAP278MB01022477E6F7AE58E207CF25D2000@GVAP278MB0102.CHEP278.PROD.OUTLOOK.COM >
References: <ZR0P278MB0122119FAE78721A694C30C8D2340@ZR0P278MB0122.CHEP278.PROD.OUTLOOK.COM >
<GVAP278MB01028F3C84C0A724412854EDD20B0@GVAP278MB0102.CHEP278.PROD.OUTLOOK.COM >
<20201008162310.GA13054@momjian.us >
<GVAP278MB010226D15C90933B3C2D198BD20B0@GVAP278MB0102.CHEP278.PROD.OUTLOOK.COM >
<2622731.1602186212@sss.pgh.pa.us >
<20201008195352.GA5062@momjian.us >
<GVAP278MB01026C00EA4E25E35062483FD2080@GVAP278MB0102.CHEP278.PROD.OUTLOOK.COM >
<20201009150832.GB1459@momjian.us >
<20201015235019.GH3797@momjian.us >
<GVAP278MB01022477E6F7AE58E207CF25D2000@GVAP278MB0102.CHEP278.PROD.OUTLOOK.COM >
On Sat, Oct 17, 2020 at 01:50:26PM +0000, Daniel Westermann (DWE) wrote:
> On Fri, Oct 9, 2020 at 11:08:32AM -0400, Bruce Momjian wrote:
> >This is not applying to PG 12 or earlier because the patch mentions JIT,
> >which was only mentioned in the PG bloom docs in PG 13+.
>
> Does that mean we need separate patches for each release starting with 10?
> As I am not frequently writing patches, I would need some help here.
I can regenerate the output for older versions using your patch.
However, I am confused about the parallelism you are seeing. Your patch
shows:
Without the two indexes being created, a parallel sequential scan will happen for the query below:
-------------------
<programlisting>
=# EXPLAIN ANALYZE SELECT * FROM tbloom WHERE i2 = 898732 AND i5 = 123451;
QUERY PLAN
---------------------------------------------------------------------------------------------------
Seq Scan on tbloom (cost=0.00..214.00 rows=1 width=24) (actual time=2.729..2.731 rows=0 loops=1)
Filter: ((i2 = 898732) AND (i5 = 123451))
Rows Removed by Filter: 10000
Planning Time: 0.257 ms
Execution Time: 2.764 ms
(5 rows)
However, I don't see any parallelism in this output. Also, I don't see
any parallelism once the indexes are created. What PG version is this?
and what config settings did you use? Thanks.
--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EnterpriseDB https://enterprisedb.com
The usefulness of a cup is in its emptiness, Bruce Lee
view thread (15+ messages) latest in thread
Message-ID: <20201026210409.GA4951@momjian.us>
Permalink: ../20201026210409.GA4951@momjian.us/
Also on: postgresql.org/message-id/20201026210409.GA4951@momjian.us
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: bruce@momjian.us, daniel.westermann@dbi-services.com, tgl@sss.pgh.pa.us, pgsql-hackers@lists.postgresql.org
Subject: Re: Wrong example in the bloom documentation
In-Reply-To: <20201026210409.GA4951@momjian.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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