postgresql - where public schema is defined in postgres -


i did search, couldn't clear clue. there 'public' schema in postgres. schema defined? see when create new db. more want know defined , how change it.

thanks in advance.

yang

the public schema created in template0 , template1 databases initdb command when database cluster initialised.

when create new database template1 database copied (cloned) create new database unless specify different template. contents of template database copied, new database starts out public schema.

you can customise template1 database - or make new databases use templates, specifying them template option create database command.

see the documentation on template databases.

if want custom templates i'd recommend making new db template , customising how want. it's reasonable drop public schema.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -