| From: | Claudio Freire <klaussfreire(at)gmail(dot)com> |
|---|---|
| To: | "ben(dot)play" <benjamin(dot)cohen(at)playrion(dot)com> |
| Cc: | postgres performance list <pgsql-performance(at)postgresql(dot)org> |
| Subject: | Re: How to reduce writing on disk ? (90 gb on pgsql_tmp) |
| Date: | 2015-06-09 16:04:47 |
| Message-ID: | CAGTBQpad3GLE-yoR+2a9wrODx8AzTGugzieTxjZzWXnWQLrxbw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-performance |
On Tue, Jun 9, 2015 at 12:58 PM, ben.play <benjamin(dot)cohen(at)playrion(dot)com> wrote:
> Hi,
>
> Thank you a lot for your answer.
> I've done that (create a tablespace in another HD with POSTGRES role + put
> it as the main temp_tablespace in the conf).
>
> But ... my command ~# df show me that all queries use the default tablespace
> ...
>
>
> This was my commands (the directory is owned by postgres) :
> CREATE TABLESPACE hddtablespace LOCATION '/media/hdd/pgsql';
> ALTER TABLESPACE hddtablespace OWNER TO postgres;
>
> SHOW temp_tablespaces;
>> hddtablespace
>
> In /media/hdd/pgsql I have only one empty directory (PG_9.3_201306121).
>
> Do you have any tips ?
You have to grant public CREATE permissions on the tablespace,
otherwise noone will have permission to use it.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Johann Spies | 2015-06-10 12:39:50 | Slow query - lots of temporary files. |
| Previous Message | ben.play | 2015-06-09 15:58:32 | Re: How to reduce writing on disk ? (90 gb on pgsql_tmp) |