Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8RNG-0007ko-Ay for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Apr 2018 14:14:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f8RNE-0007NY-T6 for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Apr 2018 14:14:20 +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.89) (envelope-from ) id 1f8RNE-0007NL-Di for pgsql-hackers@lists.postgresql.org; Tue, 17 Apr 2018 14:14:20 +0000 Received: from mail.postgrespro.ru ([93.174.131.138]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f8RNA-0002a5-S7 for pgsql-hackers@postgresql.org; Tue, 17 Apr 2018 14:14:19 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 0D55C21C2128; Tue, 17 Apr 2018 17:14:14 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=x tagged_above=-99 required=4 WHITELISTED tests=[] autolearn=unavailable Received: from zakirov.localdomain (gw.postgrespro.ru [93.174.131.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id D3F2121C1CC0; Tue, 17 Apr 2018 17:14:13 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1523974453; bh=iMNhCWDwqc9wvnAuq67En3x+JULwfLvQ//O3eNbYGEc=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=YZFWiGlaaP3ULdsBNcMwU+yrbVpb57H1vIrR5xy6YWQxq81Xxe5VBjpSOz6pEqXhh 1iXTAAVuLt18MRlYMB9bDffxwHNTBTu4keQVBwhFzl0dOPPOMnW7D2m6spvoUIPKZz NdVu5im7WXJLKI0SCji14Q0StyB/pp53cjItjgVM= Date: Tue, 17 Apr 2018 17:14:12 +0300 From: Arthur Zakirov To: Pavel Stehule Cc: PostgreSQL Hackers Subject: Re: [HACKERS] proposal: schema variables Message-ID: <20180417141410.GA7917@zakirov.localdomain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello Pavel, On Thu, Oct 26, 2017 at 09:21:24AM +0200, Pavel Stehule wrote: > I hope so this proposal is good enough and simple. > > Comments, notes? As I understood variables are stored in pg_class table. Did you consider storing variables in a special catalog table? It can be named as pg_variable. pg_variable table requires more code of course, but it would fix the issues: - pg_class has a lot attributes which are not related with variables, and I think variables don't need many of them - in a future variables might want to have some additional attributes which are not needed for relations, you can easily add them to pg_variable What do you think? -- Arthur Zakirov Postgres Professional: http://www.postgrespro.com Russian Postgres Company