Search Postgresql Archives

Re: temporary tables are logged somehow?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael Paquier <michael.paquier@xxxxxxxxx> writes:
> On Thu, Jan 22, 2015 at 11:06 PM, Andrey Lizenko <lizenko79@xxxxxxxxx> wrote:
>> 3. They are not WAL-logged.
>> Whats wrong with it in my case?

> Nothing. Temporary tables are not WAL-logged, but transaction commit is.

Right.  I think there is some optimization for transactions that only
wrote temp-table data, but it could at most be skipping fsync of the
transaction commit record, not omitting generating it entirely.

Also, changes to the system catalogs are always WAL-logged; so creation
and deletion of a temp table cause some amount of WAL output, even if
manipulation of the table's contents does not.

			regards, tom lane


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux