Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hyMo7-0006sS-2H for pgsql-general@arkaria.postgresql.org; Thu, 15 Aug 2019 20:57:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hyMo5-0006CD-Ts for pgsql-general@arkaria.postgresql.org; Thu, 15 Aug 2019 20:57:13 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hyMo5-00065c-Kb for pgsql-general@lists.postgresql.org; Thu, 15 Aug 2019 20:57:13 +0000 Received: from mailbackend.panix.com ([166.84.1.89]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hyMnz-0000sp-Sl for pgsql-general@postgresql.org; Thu, 15 Aug 2019 20:57:10 +0000 Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id 468dzt0Jfjz1BNJ for ; Thu, 15 Aug 2019 16:56:57 -0400 (EDT) Received: by panix2.panix.com (Postfix, from userid 17622) id 468dzs62hXz1ZVM; Thu, 15 Aug 2019 16:56:57 -0400 (EDT) Date: Thu, 15 Aug 2019 16:56:57 -0400 From: stan To: pgsql-general@postgresql.org Subject: Variable constants ? Message-ID: <20190815205657.GA2593@panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Editor: gVim User-Agent: Mutt/1.12.1 (2019-06-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I need to put a few bossiness constants, such as a labor rate multiplier in an application. I am adverse to hard coding these things. The best plan i have come up with so far is to store them in a table, which would have only 1 row, and a column for each needed constant. Anyone have a better way to do this? Failing a better way is there some way I can limit this table to only allow one row to exist? -- "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." -- Benjamin Franklin