Re: multiple membership grants and information_schema.applicable_roles

2023-07-23 Thread Pavel Luzanov
not doing that. I noticed this, but the view stays unchanged so long time. I thought it was done intentionally. -- Pavel Luzanov Postgres Professional: https://postgrespro.com

Re: multiple membership grants and information_schema.applicable_roles

2023-07-24 Thread Pavel Luzanov
On 24.07.2023 09:42, Pavel Luzanov wrote: Is IS_GRANTABLE a key column for ROLE_AUTHORIZATION_DESCRIPTORS? If not, duplicates is not possible. Right? The answer is: no. Duplicate pairs (grantee, role_name) is impossible only with defined key with this two columns. If there is no such key or

Re: PG 16 draft release notes ready

2023-08-09 Thread Pavel Luzanov
On 09.08.2023 21:06, Bruce Momjian wrote: On Sun, Jul 23, 2023 at 02:09:17PM +0300, Pavel Luzanov wrote: Please consider to add item to the psql section: Add psql \drg command to display role grants and remove the "Member of" column from \du & \dg altogether (d65ddaca) The rel

Re: PG 16 draft release notes ready

2023-08-16 Thread Pavel Luzanov
attribute for a role now will affect (as the default value) only future GRANT commands without an INHERIT clause. -- Pavel Luzanov Postgres Professional: https://postgrespro.com

Re: PG 16 draft release notes ready

2023-08-22 Thread Pavel Luzanov
The only question about "can be". Why not "will be"? The inheritance behavior will be changed anyway. Please let me know if I need any other changes. Thanks. * Allow psql's access privilege commands to show system objects (Nathan Bossart, Pavel Luzanov)     The options

Re: Things I don't like about \du's "Attributes" column

2024-04-15 Thread Pavel Luzanov
lay roles \drg - display role grants But the long history of \du & \dg prevents from doing so, and creating a third option is too excessive. -- Pavel Luzanov Postgres Professional:https://postgrespro.com

Re: Things I don't like about \du's "Attributes" column

2024-04-16 Thread Pavel Luzanov
g "Can" instead of "yes" to represent true. In other psql commands, boolean values are always shown as yes/no. NULL instead of false might be possible, but I'd rather check if this approach has been used elsewhere. I prefer consistency everywhere. -- Pavel Luzanov Postgres Professional:https://postgrespro.com

Re: Things I don't like about \du's "Attributes" column

2024-05-15 Thread Pavel Luzanov
about pg_roles to this commitfest entry[2]. I will return to work on the patch after my vacation. 1.https://www.postgresql.org/message-id/flat/db1d94ba-1e6e-4e86-baff-91e6e79071c1%40postgrespro.ru 2.https://commitfest.postgresql.org/48/4738/ -- Pavel Luzanov Postgres Professional:https://postgrespro.com

Re: psql: Add role's membership options to the \du+ command

2023-05-18 Thread Pavel Luzanov
regress_du_admin | t | t   | t   | postgres(10 rows)But is it worth inventing a new psql command for this? - Pavel Luzanov

Re: psql: Add role's membership options to the \du+ command

2023-06-24 Thread Pavel Luzanov
6. The ADMIN OPTION is available in all supported versions. * The new meta-command will not show all roles. It will only show the roles included in other roles. To show all roles you need to add an outer join between pg_roles and pg_auth_members. But all columns except "role" will be left blank. Is it worth doing this? -- Pavel Luzanov Postgres Professional: https://postgrespro.com

Re: Things I don't like about \du's "Attributes" column

2023-06-24 Thread Pavel Luzanov
ady to take up this topic. There is definitely room for improvement here. But first I want to finish with the \du command. -- Pavel Luzanov Postgres Professional: https://postgrespro.com

Re: psql: Add role's membership options to the \du+ command

2023-06-25 Thread Pavel Luzanov
On 24.06.2023 18:57, David G. Johnston wrote: On Sat, Jun 24, 2023 at 8:11 AM Pavel Luzanov wrote: There are two commands showing the same information about roles: \du and \dr. I would add \dr as the new official command to complement adding \drg and deprecate both \du and \dg

Re: psql: Add role's membership options to the \du+ command

2023-06-26 Thread Pavel Luzanov
Please find attached new patch version. It implements \drg command and hides duplicates in \du & \dg commands. -- Pavel Luzanov Postgres Professional: https://postgrespro.com From a117f13fd497bf6ff8a504bcda6cb10d34dd22a7 Mon Sep 17 00:00:00 2001 From: Pavel Luzanov Date: Mon, 26 Jun 2023 2

Re: Things I don't like about \du's "Attributes" column

2024-07-16 Thread Pavel Luzanov
more people to chip in. I am not against moving "Valid until" and "Connection limit" to extended mode. It just seemed to me that without these two columns, the output of the command is too short, so there is no reason in hiding them. But you are right, we need more opinion

Re: Things I don't like about \du's "Attributes" column

2024-07-16 Thread Pavel Luzanov
On 16.07.2024 16:24, Robert Haas wrote: Which version of the patch is currently under discussion? I believe we are talking about the latest v8 patch version. [1] 1.https://www.postgresql.org/message-id/5341835b-e7be-44dc-b6e5-400e9e3f3c64%40postgrespro.ru -- Pavel Luzanov Postgres

Re: Things I don't like about \du's "Attributes" column

2024-07-17 Thread Pavel Luzanov
hat's fine. So the time for change has not come yet. In any case, this discussion may be useful in the future.Butwhoknows,maybenowwecancometosomekindof agreement. -- Pavel Luzanov Postgres Professional:https://postgrespro.com

Re: Things I don't like about \du's "Attributes" column

2024-07-22 Thread Pavel Luzanov
k I'm not the first one trying to bikeshedding in this area. It's probably been discussed many times whythisshouldnotbe done. But such thoughts do come, and I don't know the answer yet. -- Pavel Luzanov Postgres Professional:https://postgrespro.com

Re: Things I don't like about \du's "Attributes" column

2024-07-26 Thread Pavel Luzanov
On 23.07.2024 15:53, Robert Haas wrote: On Mon, Jul 22, 2024 at 5:19 PM Pavel Luzanov wrote: Visible but inaccessible objects in system catalogs increase the volume of command output unnecessarily. Why do I need to know the list of all schemas in the database if I only have access to the

Re: proposal: plpgsql pragma statement

2018-12-05 Thread Pavel Luzanov
TABLE xxx ... - Pavel Luzanov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company

Re: Usability fail with psql's \dp command

2018-07-31 Thread Pavel Luzanov
| t    | table | postgres=arwdDxt/postgres+|   |     |  |   | u=r/postgres |   | - Pavel Luzanov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company

Re: Usability fail with psql's \dp command

2018-08-01 Thread Pavel Luzanov
permissions, they are not printed by any backslash commands. I tried your patch. From my point of view this is desirable behavior. Hopes this patch will be included in v12. - Pavel Luzanov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company

Re: doc - add missing documentation for "acldefault"

2018-08-01 Thread Pavel Luzanov
log | aclremove   | aclitem[]    | aclitem[], aclitem - Pavel Luzanov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company

Re: doc - add missing documentation for "acldefault"

2018-08-02 Thread Pavel Luzanov
tions. Your's patch from another thread closes the last hole - describing default privileges in various psql commands. ----- Pavel Luzanov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company

Re: [HACKERS] proposal: schema variables

2018-08-23 Thread Pavel Luzanov
s a very needed and important feature, but for others purposes. - Pavel Luzanov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company

Re: DOCS: pg_createsubscriber wrong link?

2024-12-16 Thread Pavel Luzanov
s like my mistake. I missed that "Initial Data Synchronization" section is a subsection of "Row filters". There is no hidden reason other than matching the link name with the subsection name and my inattention. v2 of proposed patch looks good to me. -- Pavel Luzanov Postgres Professional:https://postgrespro.com

Re: psql: Fix \pset by adding missed xheader_width option to the help

2024-11-22 Thread Pavel Luzanov
On 22.11.2024 05:52, Michael Paquier wrote: On Thu, Nov 21, 2024 at 10:50:41PM +0300, Pavel Luzanov wrote: I found that the help for \pset command missed xheader_width option. Good catch. This is a mistake from a45388d6e098. The patch should have used HELP0() as this is a single variable

psql: Fix \pset by adding missed xheader_width option to the help

2024-11-21 Thread Pavel Luzanov
I found that the help for \pset command missed xheader_width option. Please, consider this small correction. -- Pavel Luzanov Postgres Professional:https://postgrespro.com From a5f59e77f3caf5b6bbbfc441393da68999e9e9fc Mon Sep 17 00:00:00 2001 From: Pavel Luzanov Date: Thu, 21 Nov 2024 22:32:44

Re: Things I don't like about \du's "Attributes" column

2025-02-09 Thread Pavel Luzanov
Hello, After reading thread "new commitfest transition guidance"[0], and as patch author, I decided to write short summary for this committfest entry[1]. Last patch has version 8, example output and code are here[2]. Proposed approach to \du command has not found positive responses for several m

Re: Adding error messages to a few slash commands

2025-04-14 Thread Pavel Luzanov
ple months later in June, if no one wants to review it earlier. -- Pavel Luzanov Postgres Professional:https://postgrespro.com

Re: Adding error messages to a few slash commands

2025-04-12 Thread Pavel Luzanov
this patch. Personally, if I were trying to make these things consistent, I'd have gone in the other direction (ie return empty tables). +1 Returning empty tables is a more appropriate behavior. -- Pavel Luzanov Postgres Professional:https://postgrespro.com

Re: Things I don't like about \du's "Attributes" column

2025-04-13 Thread Pavel Luzanov
andsetthe status to "Waitingon Author". I hope that I will return to this work in June. Robert's idea (detailed role permissions report with \du rolename) can be implemented as a separate work. -- Pavel Luzanov Postgres Professional:https://postgrespro.com

Re: making EXPLAIN extensible

2025-03-28 Thread Pavel Luzanov
way is to preload it into some or all sessions by including pg_overexplain in session_preload_libraries or shared_preload_libraries in postgresql.conf. -- Pavel Luzanov Postgres Professional:https://postgrespro.com

<    1   2