Re: PostgreSQL pollutes the file system

Поиск
Список
Период
Сортировка
От Andreas Karlsson
Тема Re: PostgreSQL pollutes the file system
Дата
Msg-id fdbcadf7-9edd-b20d-9987-4e7d21d23b2d@proxel.se
обсуждение исходный текст
Ответ на Re: PostgreSQL pollutes the file system  (Chris Travers <chris.travers@adjust.com>)
Ответы Re: PostgreSQL pollutes the file system  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 3/21/19 7:07 AM, Chris Travers wrote:
> 1.  createuser/dropuser are things that I don't consider good ways of 
> creating users anyway.  I think we should just consider removing these 
> binaries.  The SQL queries are better, more functional, and can be 
> rolled back as a part of a larger transaction.

Those binaries are pretty convenient to use in scripts since they handle 
SQL escaping for you, but probably not convenient enough that we would 
have added createuser today.

Compare

createuser "$USER"

vs

echo 'CREATE ROLE :"user" LOGIN' | psql postgres -v "user=$USER"

Andreas


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Christoph Berg
Дата:
Сообщение: Re: Re: Reporting script runtimes in pg_regress
Следующее
От: Jesper Pedersen
Дата:
Сообщение: Re: speeding up planning with partitions