Re: disable prompting by default in createuser

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: disable prompting by default in createuser
Date: 2011-11-26 00:32:47
Message-ID: CA+TgmobtWEv9wCB1onM7iMFvk2cSGEdQ=2X5xSBUT0mDyZKofA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Nov 25, 2011 at 6:28 PM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> I propose that we change createuser so that it does not prompt for
> anything by default.  We can arrange options so that you can get prompts
> for whatever is missing, but by default, a call to createuser should
> just run CREATE USER with default options.  The fact that createuser
> issues prompts is always annoying when you create setup scripts, because
> you have to be careful to specify all the necessary options, and they
> are inconsistent and different between versions (although the last
> change about that was a long time ago), and the whole behavior seems
> contrary to the behavior of all other utilities.  I don't think there'd
> be a real loss by not prompting by default; after all, we don't really
> want to encourage users to create more superusers, do we?  Comments?

+1. I've never found the current behavior to be other than an
annoyance. I suggest --interactive or something like that to enable
prompting.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Janes 2011-11-26 00:42:31 Re: Measuring relation free space
Previous Message Bruce Momjian 2011-11-26 00:08:17 Re: Add pg_upgrade ENABLE_SAME_CATVERSION_UPGRADES macro for testing to