Skip to content

Commit b04137a

Browse files
committed
Fix verbose display of REPLICATION role attribute
Josh Kupershmidt
1 parent 721ea41 commit b04137a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/psql/describe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2342,7 +2342,7 @@ describeRoles(const char *pattern, bool verbose)
23422342
add_role_attribute(&buf, _("Cannot login"));
23432343

23442344
if (pset.sversion >= 90100)
2345-
if (strcmp(PQgetvalue(res, i, 8), "t") == 0)
2345+
if (strcmp(PQgetvalue(res, i, (verbose ? 9 : 8)), "t") == 0)
23462346
add_role_attribute(&buf, _("Replication"));
23472347

23482348
conns = atoi(PQgetvalue(res, i, 6));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy