Re: High Disk write and space taken by PostgreSQL

Поиск
Список
Период
Сортировка
Искать
От
Bruce Momjian
Тема
Re: High Disk write and space taken by PostgreSQL
Дата
Msg-id
20120816145321.GA8359@momjian.us
Ответ на
Список
Дерево обсуждения
High Disk write and space taken by PostgreSQL J Ramesh Kumar <rameshj1977@gmail.com>
Re: High Disk write and space taken by PostgreSQL David Barton <dave@oneit.com.au>
Re: High Disk write and space taken by PostgreSQL J Ramesh Kumar <rameshj1977@gmail.com>
Re: High Disk write and space taken by PostgreSQL Claudio Freire <klaussfreire@gmail.com>
Re: High Disk write and space taken by PostgreSQL Merlin Moncure <mmoncure@gmail.com>
Re: High Disk write and space taken by PostgreSQL Scott Marlowe <scott.marlowe@gmail.com>
Re: High Disk write and space taken by PostgreSQL J Ramesh Kumar <rameshj1977@gmail.com>
Re: High Disk write and space taken by PostgreSQL Claudio Freire <klaussfreire@gmail.com>
Re: High Disk write and space taken by PostgreSQL Ondrej Ivanič <ondrej.ivanic@gmail.com>
Re: High Disk write and space taken by PostgreSQL Bruce Momjian <bruce@momjian.us>
Re: High Disk write and space taken by PostgreSQL Bruce Momjian <bruce@momjian.us>
Re: High Disk write and space taken by PostgreSQL "anarazel@anarazel.de" <andres@anarazel.de>
Re: High Disk write and space taken by PostgreSQL Bruce Momjian <bruce@momjian.us>
Re: High Disk write and space taken by PostgreSQL Scott Marlowe <scott.marlowe@gmail.com>
On Thu, Aug 16, 2012 at 03:48:57PM +1000, Ondrej Ivanič wrote:
> Hi,
> 
> On 16 August 2012 15:40, J Ramesh Kumar  wrote:
> > As you said, MySQL with MyISAM is better choice for my app. Because I don't
> > need transaction/backup. May be I'll try with InnoDB and find the disk
> > write/space difference. Is there any similar methods available in postgresql
> > like MyISAM engine ?
> 
> You can try unlogged tables:
> http://www.postgresql.org/docs/9.1/static/sql-createtable.html
> 
> If specified, the table is created as an unlogged table. Data written
> to unlogged tables is not written to the write-ahead log (see Chapter
> 29), which makes them considerably faster than ordinary tables.
> However, they are not crash-safe: an unlogged table is automatically
> truncated after a crash or unclean shutdown. The contents of an
> unlogged table are also not replicated to standby servers. Any indexes
> created on an unlogged table are automatically unlogged as well;
> however, unlogged GiST indexes are currently not supported and cannot
> be created on an unlogged table.

I would set full_page_writes = off too.

-- 
  Bruce Momjian          http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +

В списке pgsql-performance по дате отправления
От: Tom Lane
Дата:
От: Bruce Momjian
Дата:
FAQ