Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfwK9-0006SG-Rb for pgsql-performance@arkaria.postgresql.org; Thu, 10 Aug 2017 22:53:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dfwK9-0006cd-D5 for pgsql-performance@arkaria.postgresql.org; Thu, 10 Aug 2017 22:53:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dfwK7-0006cE-Nc for pgsql-performance@postgresql.org; Thu, 10 Aug 2017 22:53:03 +0000 Received: from resqmta-po-12v.sys.comcast.net ([2001:558:fe16:19:96:114:154:171]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dfwK0-0003Zg-Ph for pgsql-performance@postgresql.org; Thu, 10 Aug 2017 22:53:02 +0000 Received: from resomta-po-05v.sys.comcast.net ([96.114.154.229]) by resqmta-po-12v.sys.comcast.net with ESMTP id fwJbdxxTDIhT4fwJtdBI8f; Thu, 10 Aug 2017 22:52:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1502405569; bh=fXzXM4itfZavXy2VcGkep3MgtaoVqCMG0OjY4RGsj64=; h=Received:Received:Subject:To:From:Message-ID:Date:MIME-Version: Content-Type; b=JdvRjkBqt5HDWw+yDVrPpudVSYWwS86cKvlSK6swOl5FQD0RopVZnBDeZtRSig3nD /z8BS4VUIP9ggDGeDYORTApWJ/EdSmWPr2JYckaNzYbHvmZwycnhKY6StKprJdp/nF SoH4/ypBJKM8/xAnhXSYJ5e3MDgGsZ8KVvy/EsGhrB8cvU465y7oN5Z5eXiBq6juVK UKR/GEXHe4wuWR7JP21WJqpazTGnFWVNWyi9W0aJ30IpWsjAud0kuDmYQoePpDEvty cr/KwEk7ntkkDoP+3l/HgG6bcbyy2i9/jwKCCPc5fCU+La1jfMBj6d5UnEevsVw1rf kSgyA8ipbSgAw== Received: from [192.168.0.67] ([73.68.146.26]) by resomta-po-05v.sys.comcast.net with SMTP id fwJsdCGhfi3ocfwJtdX5wl; Thu, 10 Aug 2017 22:52:49 +0000 Subject: Re: Unlogged tables To: "ldh@laurent-hasson.com" References: <314ce53a-ee57-0be3-7815-f0e99fc0a6e4@comcast.net> <6634901f-8d4e-023a-283f-5230168e85ff@comcast.net> Cc: pgsql-performance@postgresql.org From: George Neuner Message-ID: <803241c0-fb96-2f41-4648-d75aefab2091@comcast.net> Date: Thu, 10 Aug 2017 18:52:46 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------C7D0637A1A8C6EB966148700" Content-Language: en-US X-CMAE-Envelope: MS4wfEb8To5B9lELNy6qmzNraSgw2xfxNBM9v/Xcpfz8GzoP6D0AUIVaBk8umEWgiCSe78/PwVYiKVzDF2IRvKvTHic+HSuUpAihesOVgwflMbyU3NPH1w2A 6hsx6EX+Gam9f6lgYfoTE75yEAIM1nD/9FfiL2QPorSeqV0KUWeQQvU0Tnh/hJgRa79kTf8mdRXG2OoSuXUmZFzyWCKZbNE/+vBBKlzSX5aZ46rx7PgOUvGO List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org This is a multi-part message in MIME format. --------------C7D0637A1A8C6EB966148700 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 8/10/2017 1:29 AM, ldh@laurent-hasson.com wrote: > > Finally, my true question was whether Postgres would support something > like worm with the performance benefits of UNLOGGED, but not the > inconveniences of auto truncates. > If you can live with the limitations, one other thing you might try is storing WORM data in the filesystem and accessing it via file_fdw. https://www.postgresql.org/docs/current/static/file-fdw.html There are a lot of downsides to this: file_fdw tables are read-only, so you have to update the external file through some other means. Also, I've never used file_fdw, so I'm not sure whether you can create indexes on the tables - and even if you can, you would need to manually recreate the indexes periodically because Postgresql won't see your updates. George --------------C7D0637A1A8C6EB966148700 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit

On 8/10/2017 1:29 AM, ldh@laurent-hasson.com wrote:

Finally, my true question was whether Postgres would support something like worm with the performance benefits of UNLOGGED, but not the inconveniences of auto truncates.


If you can live with the limitations, one other thing you might try is storing WORM data in the filesystem and accessing it via file_fdw.
https://www.postgresql.org/docs/current/static/file-fdw.html

There are a lot of downsides to this:  file_fdw tables are read-only, so you have to update the external file through some other means.  Also, I've never used file_fdw, so I'm not sure whether you can create indexes on the tables - and even if you can, you would need to manually recreate the indexes periodically because Postgresql won't see your updates.

George

--------------C7D0637A1A8C6EB966148700--