Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eNqoR-0001P7-Rb for pgsql-general@arkaria.postgresql.org; Sun, 10 Dec 2017 01:53:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eNqoR-0003W3-EV for pgsql-general@arkaria.postgresql.org; Sun, 10 Dec 2017 01:53:51 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eNqoR-0003Vu-4D for pgsql-general@lists.postgresql.org; Sun, 10 Dec 2017 01:53:51 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eNqoO-000291-R4 for pgsql-general@lists.postgresql.org; Sun, 10 Dec 2017 01:53:49 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id vBA1rhl04278 for ; Sat, 9 Dec 2017 17:53:43 -0800 Subject: Re: PG Schema to be used as log and monitoring store To: pgsql-general@lists.postgresql.org References: <20171209160147.36322c55@wrkhors.com> From: John R Pierce Message-ID: <83027d94-08d4-761a-d4a7-a50bb4bc01da@hogranch.com> Date: Sat, 9 Dec 2017 17:53:38 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/9/2017 5:46 PM, Stefan Keller wrote: > Below I re-modeled it to a relational schema as you suggested and also > tried to utilize the INHERITS feature. > Does that look better? I believe I would use boolean, not bit. -- john r pierce, recycling bits in santa cruz