option for psql - short list non template database

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: option for psql - short list non template database
Date: 2015-07-16 04:21:36
Message-ID: CAFj8pRDFimVkLmaHfSKBx-7szbbgzgsX3swxnhGVBZ6sLjPzUA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi

terrible often I use pattern

psql -c "select datname from pg_database where not datistemplate and
datallowconn" postgres

What about introduction new long option that does it?

psql -At -list --names --without-templates

Regards

Pavel

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2015-07-16 04:23:21 Re: Re: [COMMITTERS] pgsql: Map basebackup tablespaces using a tablespace_map file
Previous Message Fujii Masao 2015-07-16 04:07:50 Re: max_worker_processes on the standby