From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: hayato.iida.0213@gmail.com
Subject: BUG #17599: After creating more than 10,000 roles, select becomes slow after role switching
Date: Mon, 29 Aug 2022 00:46:50 +0000
Message-ID: <17599-52eb32d8dc747e77@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 17599
Logged by: hayato iida
Email address: hayato.iida.0213@gmail.com
PostgreSQL version: 14.5
Operating system: docker image 14.4-alpine3.16 on mac
Description:
1. Apply row level security to table.
2. Register 10,000 roles
3. Register data in the table (only by registering a few items)
4. Switching to a role with row level security applied and executing sql
takes about 1 second (when executed again here, it returns in about 1 ms)
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-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, hayato.iida.0213@gmail.com
Subject: Re: BUG #17599: After creating more than 10,000 roles, select becomes slow after role switching
In-Reply-To: <17599-52eb32d8dc747e77@postgresql.org>
* 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