public inbox for [email protected]  
help / color / mirror / Atom feed
From: Edwin UY <[email protected]>
To: Pgsql-admin <[email protected]>
Subject: psql formatting question
Date: Wed, 2 Apr 2025 17:55:26 +1300
Message-ID: <CA+wokJ9EiE1UxxnxAZ-jTqUpFVW0cGKu+n7avV6oRt4mfhTLNw@mail.gmail.com> (raw)

Hi,

Apologies to start with as this is run against a RDS database.
TBH, I wish I have non-RDS database to learn PostgreSQL more. I do am
looking for a remote job :-)

Anyway, on to the question.
I am pretty sure the answer will be a NO but maybe it isn't.
Are there any psql settings that I can set to format the output for below
so that the output of settings is wrapped sort of?

=> select name, setting from pg_settings where name like '%extensions%' ;
               name               |



         setting



----------------------------------+-------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------
 rds.allowed_delegated_extensions |
 rds.allowed_extensions           | *
 rds.extensions                   | address_standardizer,
address_standardizer_data_us, amcheck, autoinc, aws_commons, aws_lambda,
aws_s3, bloom, bool
_plperl, btree_gin, btree_gist, citext, cube, dblink, dict_int, dict_xsyn,
earthdistance, flow_control, fuzzystrmatch, h3, h3_postgis, hll, hstore, hs
tore_plperl, hypopg, insert_username, intagg, intarray, ip4r, isn,
jsonb_plperl, lo, log_fdw, ltree, moddatetime, mysql_fdw, old_snapshot,
oracle_fdw,
 orafce, pageinspect, pg_bigm, pg_buffercache, pg_cron, pg_freespacemap,
pg_hint_plan, pg_partman, pg_prewarm, pg_proctab, pg_repack, pg_similarity,
p
g_stat_statements, pg_tle, pg_transport, pg_trgm, pg_visibility, pgactive,
pgaudit, pgcrypto, pglogical, pgrouting, pgrowlocks, pgstattuple, pgtap, pl
coffee, plls, plperl, plpgsql, plprofiler, plrust, pltcl, plv8, postgis,
postgis_raster, postgis_tiger_geocoder, postgis_topology, postgres_fdw,
prefi
x, rdkit, rds_tools, refint, seg, sslinfo, tablefunc, tcn, tds_fdw,
test_parser, tsm_system_rows, tsm_system_time, unaccent, uuid-ossp, vector
(3 rows)

Hoping to get the output like below maybe or something close to it.

               name               |                       setting
 rds.allowed_delegated_extensions |
 rds.allowed_extensions           | *
 rds.extensions                   | address_standardizer,
address_standardizer_data_us, amcheck, autoinc, aws_commons, aws_lambda,
aws_s3, bloom, bool_plperl,
                                    btree_gin, btree_gist, citext, cube,
dblink, dict_int, dict_xsyn, earthdistance, flow_control, fuzzystrmatch,
h3, h3_postgis,
                                    hll, hstore, hstore_plperl, hypopg,
insert_username, intagg, intarray, ip4r, isn, jsonb_plperl, lo, log_fdw,
ltree, moddatetime,
--------
--------


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: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: psql formatting question
  In-Reply-To: <CA+wokJ9EiE1UxxnxAZ-jTqUpFVW0cGKu+n7avV6oRt4mfhTLNw@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox