Hi,Frirends, are there any commands in pgsql/bin/ corresponding "create tablespace"?

Started by sunpengover 13 years ago3 messagesgeneral
Jump to latest
#1sunpeng
bluevaley@gmail.com

Hi,Frirends,
Are there any commands in pgsql/bin/ corresponding "create tablespace"?
I know:
createuser <==> create role
createdb <==>create database
Thanks!
peng

#2Magnus Hagander
magnus@hagander.net
In reply to: sunpeng (#1)
Re: Hi,Frirends, are there any commands in pgsql/bin/ corresponding "create tablespace"?

On Mon, Aug 6, 2012 at 11:22 AM, sunpeng <bluevaley@gmail.com> wrote:

Hi,Frirends,
Are there any commands in pgsql/bin/ corresponding "create tablespace"?
I know:
createuser <==> create role
createdb <==>create database

Hi!

No, but you can always use:
psql -c "create tablespace foo..."

--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/

#3David Salisbury
salisbury@globe.gov
In reply to: Magnus Hagander (#2)
Re: Hi,Frirends, are there any commands in pgsql/bin/ corresponding "create tablespace"?

On 8/6/12 3:31 AM, Magnus Hagander wrote:

On Mon, Aug 6, 2012 at 11:22 AM, sunpeng<bluevaley@gmail.com> wrote:

Hi,Frirends,
Are there any commands in pgsql/bin/ corresponding "create tablespace"?
I know:
createuser<==> create role
createdb<==>create database

Hi!

No, but you can always use:
psql -c "create tablespace foo..."

Wouldn't a tablespace in Pg simply be a directory.. ?