Re: Adding a concept of TEMPORARY TABLESPACE for the use in temp_tablespaces

2019-04-08 Thread Bruce Momjian
On Thu, Mar 14, 2019 at 12:53:02AM -0700, Mitar wrote: > Hi! > > On Fri, Jan 25, 2019 at 2:32 PM Bruce Momjian wrote: > > I wrote a blog entry about this: > > > > https://momjian.us/main/blogs/pgblog/2017.html#June_2_2017 > > > > This is certainly an area we can improve, but it would requ

Re: Adding a concept of TEMPORARY TABLESPACE for the use in temp_tablespaces

2019-03-14 Thread Mitar
Hi! On Fri, Jan 25, 2019 at 2:32 PM Bruce Momjian wrote: > I wrote a blog entry about this: > > https://momjian.us/main/blogs/pgblog/2017.html#June_2_2017 > > This is certainly an area we can improve, but it would require changes > in several parts of the system to handle cases where the

Re: Adding a concept of TEMPORARY TABLESPACE for the use in temp_tablespaces

2019-01-25 Thread Bruce Momjian
On Sun, Jan 6, 2019 at 11:01:52AM -0800, Mitar wrote: > Hi! > > I have read around the Internet a lot about the idea of using /dev/shm > for a tablespace to put tables in and issues with that. But I still > have not managed to get a good grasp why would that be a bad idea for > using it for tempo

Re: Adding a concept of TEMPORARY TABLESPACE for the use in temp_tablespaces

2019-01-06 Thread Mitar
Hi! On Sun, Jan 6, 2019 at 11:01 AM Mitar wrote: > I have experimented a bit and performance really improves if /dev/shm > is used. I have experimented with creating temporary tables inside a > regular (SSD backed) tablespace /dev/shm and I have seen at least 2x > improvement in time it takes for

Adding a concept of TEMPORARY TABLESPACE for the use in temp_tablespaces

2019-01-06 Thread Mitar
Hi! I have read around the Internet a lot about the idea of using /dev/shm for a tablespace to put tables in and issues with that. But I still have not managed to get a good grasp why would that be a bad idea for using it for temporary objects. I understand that for regular tables this might preve