Re: the difference between psql , createdb, dropuser

"David G. Johnston" <[email protected]> Sun, 27 Oct 2019 17:00:45 -0700
Newsgroups gmane.comp.db.postgresql.admin
Message-ID <CAKFQuwZubk_eZ9KXZUAEKfUY5VZ4DGgJmzJTB5u7BGE3vx=GdQ@mail.gmail.com>
On Sunday, October 27, 2019, Setve <[email protected]> wrote:

> I can execute the create user or create db .etc... command at a PostgreSQL
> interactive terminal so why are these commands "createuser , createdb ,
> dropdb etc.... separately and what is their purpose?
> <https://www.reddit.com/r/PostgreSQL/comments/dnyr0n/i_can_execute_the_create_user_or_create_db_etc/>
>
>
Its simply an abstraction so one can execute those actions in a shell
without including and dealing with raw SQL - thus removing SQL-injection
exposure.

David J.