On Sunday, October 27, 2019, Setve <setve(at)protonmail(dot)com> 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.