Re: Tablespaces
От
Tom Lane
Тема
Re: Tablespaces
Дата
Msg-id
25130.1077940179@sss.pgh.pa.us
Ответ на
Re: Tablespaces (Gavin Sherry)
Список
Дерево обсуждения
Tablespaces Gavin Sherry <swm@linuxworld.com.au>
Re: Tablespaces "Simon Riggs" <simon@2ndquadrant.com>
Re: Tablespaces Tom Lane <tgl@sss.pgh.pa.us>
Re: Tablespaces Bruce Momjian <pgman@candle.pha.pa.us>
Re: Tablespaces Gavin Sherry <swm@linuxworld.com.au>
Re: Tablespaces Tom Lane <tgl@sss.pgh.pa.us>
Re: Tablespaces Bruce Momjian <pgman@candle.pha.pa.us>
Re: Tablespaces Bruce Momjian <pgman@candle.pha.pa.us>
Re: Tablespaces Gavin Sherry <swm@linuxworld.com.au>
Re: Tablespaces Bruce Momjian <pgman@candle.pha.pa.us>
Re: Tablespaces Tom Lane <tgl@sss.pgh.pa.us>
Re: Tablespaces Oliver Elphick <olly@lfix.co.uk>
Re: Tablespaces Tom Lane <tgl@sss.pgh.pa.us>
Re: Tablespaces Barry Lind <blind@xythos.com>
Re: Tablespaces Greg Stark <gsstark@mit.edu>
Re: Tablespaces Bruce Momjian <pgman@candle.pha.pa.us>
Re: [pgsql-hackers-win32] Tablespaces Tom Lane <tgl@sss.pgh.pa.us>
Re: [pgsql-hackers-win32] Tablespaces Bruce Momjian <pgman@candle.pha.pa.us>
Re: [pgsql-hackers-win32] Tablespaces Tom Lane <tgl@sss.pgh.pa.us>
Re: [pgsql-hackers-win32] Tablespaces Bruce Momjian <pgman@candle.pha.pa.us>
Re: [pgsql-hackers-win32] Tablespaces Gavin Sherry <swm@linuxworld.com.au>
Re: Tablespaces Greg Stark <gsstark@mit.edu>
Re: Tablespaces Bruce Momjian <pgman@candle.pha.pa.us>
Re: Tablespaces Thomas Swan <tswan@idigx.com>
Re: Tablespaces Bruce Momjian <pgman@candle.pha.pa.us>
Re: Tablespaces Tom Lane <tgl@sss.pgh.pa.us>
Re: Tablespaces Thomas Swan <tswan@idigx.com>
Re: Tablespaces Marko Karppinen <marko@karppinen.fi>
Re: Tablespaces Andrew Sullivan <ajs@crankycanuck.ca>
Re: Tablespaces Bruce Momjian <pgman@candle.pha.pa.us>
Re: Tablespaces Andreas Pflug <pgadmin@pse-consulting.de>
Re: Tablespaces Richard Huxton <dev@archonet.com>
Re: Tablespaces Bruce Momjian <pgman@candle.pha.pa.us>
Re: Tablespaces Shridhar Daithankar <shridhar@frodo.hserus.net>
Re: Tablespaces Bruce Momjian <pgman@candle.pha.pa.us>
Re: Tablespaces Gavin Sherry <swm@linuxworld.com.au>
Re: Tablespaces Hans-Jürgen Schönig <postgres@cybertec.at>
Re: Tablespaces "Joshua D. Drake" <jd@commandprompt.com>
Re: Tablespaces Bruce Momjian <pgman@candle.pha.pa.us>
Re: Tablespaces Gavin Sherry <swm@linuxworld.com.au>
Re: Tablespaces Hans-Jürgen Schönig <postgres@cybertec.at>
Re: Tablespaces Barry Lind <blind@xythos.com>
Re: Tablespaces Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Re: Tablespaces Tom Lane <tgl@sss.pgh.pa.us>
Re: Tablespaces Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Re: Tablespaces Dennis Bjorklund <db@zigo.dhs.org>
Re: Tablespaces Greg Stark <gsstark@mit.edu>
Re: Tablespaces Gavin Sherry <swm@linuxworld.com.au>
Re: Tablespaces "Alex J. Avriette" <alex@posixnap.net>
Re: Tablespaces Gavin Sherry <swm@linuxworld.com.au>
Re: Tablespaces James Rogers <jrogers@neopolitan.com>
Re: Tablespaces Tom Lane <tgl@sss.pgh.pa.us>
Re: Tablespaces "Alex J. Avriette" <alex@posixnap.net>
Re: Tablespaces Andrew Sullivan <ajs@crankycanuck.ca>
Re: Tablespaces pgsql@mohawksoft.com
Re: Tablespaces "scott.marlowe" <scott.marlowe@ihs.com>
Re: Tablespaces Tom Lane <tgl@sss.pgh.pa.us>
Re: Tablespaces Bruce Momjian <pgman@candle.pha.pa.us>
Re: Tablespaces "scott.marlowe" <scott.marlowe@ihs.com>
Re: Tablespaces Tom Lane <tgl@sss.pgh.pa.us>
Gavin Sherry writes: > I do not intend to work on such a system for the initial introduction of > table spaces. The problem is, of course, knowing when you're actually out > of space in a table space in any given transaction. It should not be that hard, at least not on local filesystems. When PG realizes that a new page must be added to a table, it does a write() to append a page of zeroes to the physical table. This happens immediately. It's true that actual data may not be written into that section of the file till long after commit, but the kernel should do space allocation checking upon the first write. I have heard tell that this may not happen when you are dealing with NFS (yet another reason not to run databases across NFS) but on all local filesystems I know of, out-of-space should result in a failure before transaction commit. I say "should" because I suspect this isn't a very heavily tested code path in Postgres. But in theory it should work. Feel free to submit bug reports if you find it doesn't. regards, tom lane
В списке pgsql-hackers по дате отправления