| From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
|---|---|
| To: | Setve <setve(at)protonmail(dot)com> |
| Cc: | "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: the difference between psql , createdb, dropuser |
| Date: | 2019-10-28 00:00:45 |
| Message-ID: | CAKFQuwZubk_eZ9KXZUAEKfUY5VZ4DGgJmzJTB5u7BGE3vx=GdQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jeff Janes | 2019-10-28 00:01:31 | Re: the difference between psql , createdb, dropuser |
| Previous Message | Setve | 2019-10-27 20:23:01 | the difference between psql , createdb, dropuser |