Re: the difference between psql , createdb, dropuser

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Oct 27, 2019 at 4:23 PM Setve <setve@xxxxxxxxxxxxxx> 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?

When scripting the initial set up of a system, it is easier to pass the name to one of these programs, then to embed them into the middle of an SQL command properly escaped and quoted.  (The names of the programs themselves are ancient history, if starting from scratch they probably begin with "pg_")

Cheers,

Jeff

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux