| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> | 
|---|---|
| To: | Tiffany Thang <tiffanythang(at)gmail(dot)com> | 
| Cc: | pgsql-general(at)postgresql(dot)org | 
| Subject: | Re: creating tables in tablespace | 
| Date: | 2017-08-24 19:07:08 | 
| Message-ID: | 7990.1503601628@sss.pgh.pa.us | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-general | 
Tiffany Thang <tiffanythang(at)gmail(dot)com> writes:
> Thanks Tom. As the superuser, I'm able to create the table in the specific
> tablespace. Does myuser require additional privileges?
Yes, USAGE on the tablespace if memory serves (check the GRANT man page
for details).
> My aim is to be able to create table in a specific tablespace (in this
> case, mytablespace) by default without having to explicitly specific one. I
> would think that is possible but I'm having trouble making it happen.
Setting default_tablespace, perhaps per-role or per-database if you
don't want to do it within a session, is the way to do that.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Hunčár | 2017-08-24 20:22:39 | Re: Multixact members limit exceeded | 
| Previous Message | Tiffany Thang | 2017-08-24 18:57:25 | Re: creating tables in tablespace |