pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: P V Tekawade <pvtekawade@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: ON COMMIT options for non temporary tables
Date: Thu, 21 Nov 2019 17:13:31 +0100
Message-ID: <b944e45c61ebb397693958e6927c4c235885e1d2.camel@cybertec.at> (raw)
In-Reply-To: <CAOxwpHA=9bPqPW3XJE3hQjvuuEyGcj+1W1dn8H=NG8jfAqXjwg@mail.gmail.com>
References: <CAOxwpHA=9bPqPW3XJE3hQjvuuEyGcj+1W1dn8H=NG8jfAqXjwg@mail.gmail.com>

On Thu, 2019-11-21 at 21:23 +0530, P V Tekawade wrote:
> For my work with Postgres 11.5, I needed functionality that unlogged tables
> are automatically dropped at the commit time, but I found that ON COMMIT
> option is only supported with temporary table.
> I would like to understand reasons why this option is limited to temporary tables?
> Is there any problem by making this option available for other type of tables
> such as unlogged tables?

How should that work for tables other than temporary tables?
Should COMMIT lock if somebody else accesses the table?

What keeps you from explicitly dropping the table right before
you commit?

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (3+ messages)  latest in thread

Message-ID: <b944e45c61ebb397693958e6927c4c235885e1d2.camel@cybertec.at>
Permalink:  ../b944e45c61ebb397693958e6927c4c235885e1d2.camel@cybertec.at/
Also on:    postgresql.org/message-id/b944e45c61ebb397693958e6927c4c235885e1d2.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, pvtekawade@gmail.com
  Subject: Re: ON COMMIT options for non temporary tables
  In-Reply-To: <b944e45c61ebb397693958e6927c4c235885e1d2.camel@cybertec.at>
  References: <CAOxwpHA=9bPqPW3XJE3hQjvuuEyGcj+1W1dn8H=NG8jfAqXjwg@mail.gmail.com> <b944e45c61ebb397693958e6927c4c235885e1d2.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox