Re: [HACKERS] [hackers]development suggestion needed (filepath assymlink)

From: Dmitry Samersoff <dms(at)wplus(dot)net>
To: "Ansley, Michael" <Michael(dot)Ansley(at)intec(dot)co(dot)za>
Cc: "'Zeugswetter Andreas SB'" <ZeugswetterA(at)wien(dot)spardat(dot)at>, "'Bruce Momjian'" <pgman(at)candle(dot)pha(dot)pa(dot)us>, "'pgsql-hackers(at)postgreSQL(dot)org '" <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] [hackers]development suggestion needed (filepath assymlink)
Date: 2000-01-19 21:03:56
Message-ID: 388626BC.8B5ACCD@wplus.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Ansley, Michael" wrote:
>
> >> Maybe we could only put the temp files in a different directory.
> >> They are where performance matters.
> >> If a normal table create takes a few seconds that is not a
> >> real problem.
> Once you have the ability to create tablespaces, you can modify the temp
> table thingy a little to create temporary tables in the temp tablespace. If
> there is no explicit temp tablespace defined, then it defaults to the system
> tablespace (which is where it goes now anyway).

IMHO, It's good idea placing all temporary files (like pg_sort.tmp etc)
into separate subdirectory.

> >> > We could actually
> >> > hash the file names into directory buckets and access them
> >> > that way, and have one directory that old symlinks to the
> >> > hashed files.
> I don't think this is necessary, because if you have a system that requires
> this kind of action, then the administrator can create a temp tablespace
> which is used for all the temporary tables, and spread the rest of the
> tables and indices among the remaining tablespaces.

According to my practice, one byte hash improve mail performance twice
for 5000 mailboxes. It doesn't significantly increase mail performance
for 1000 mailboxes.

I'm hard to belive postgres data directory with 5000 files ;-))

--
Dmitry Samersoff, DM\S
dms(at)wplus(dot)net http://devnull.wplus.net
* there will come soft rains

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alfred Perlstein 2000-01-19 21:12:28 Re: [HACKERS] gperf anyone?
Previous Message The Hermit Hacker 2000-01-19 20:22:02 Re: [HACKERS] gperf anyone?