Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m8Qih-0000Vd-7y for pgsql-committers@arkaria.postgresql.org; Tue, 27 Jul 2021 17:18:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m8Qif-0006Sk-W8 for pgsql-committers@arkaria.postgresql.org; Tue, 27 Jul 2021 17:18:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m8Qif-0006Sb-Fe for pgsql-committers@lists.postgresql.org; Tue, 27 Jul 2021 17:18:17 +0000 Received: from mail-oo1-xc33.google.com ([2607:f8b0:4864:20::c33]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m8Qib-0007CB-Ni for pgsql-committers@lists.postgresql.org; Tue, 27 Jul 2021 17:18:17 +0000 Received: by mail-oo1-xc33.google.com with SMTP id b25-20020a4ac2990000b0290263aab95660so2067139ooq.13 for ; Tue, 27 Jul 2021 10:18:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HQCMQB3zHMrCydaJFDYbdkLqxwJY7GliPzA2PBcxW1Y=; b=KrBYw7aXJJAjamp55fWHh0VEHXmNQI/BgZQFXHREXzQC30mFvO6ZE1hSQ0itmtp8Aq QNYDNZrx3I7JJfFsWRztc2C7y3JI8kGDULuwCYbSy3I0ru+tVCf0eC7JpllkcOEumHGj /UY9BedYXabsMddhNTbz1MScNsDb+buPesC4yAt7HTvcg6A7G3OkI/XTxgzqiLzEjaaS 95m5Sih+SWcoQgwx11yupweDbnrbkpyWhcF/JmLHIvTRlBhgoC1bqfBGddOuCS8UB3BS EZ8JykJqnihO3sK+8jV0RWvelXZ1DpcjvhN0RQ3M1FeF1O2uiIuHnyMHG1kl+q3AZtCM tEcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HQCMQB3zHMrCydaJFDYbdkLqxwJY7GliPzA2PBcxW1Y=; b=lxZ1JQy5vaAIEF/jpzdbORkE6dAIAOFKOrp+XYQGx3mc1dEe8TwuScODtxATOuWULd Pu+MQ5lAjZwGlFxmU8wNJwNluZ/iTVx12D8I+YjCNPcjhHJ199YHW09jSW9oF/aIj+xh RmE67Sl4zfOSbXz7eFmL3EJKjo5X1q942zmHZSHGSH8S133DSq03gnJ7iDm2Lzxj06Gf gJ5cEiqUYRTLe0yGLGELoZMBkFmTZ9yW0GApQML3MXRQsfgCa+9+Sy6h/Ry8pTTnbbLO yXdwG8a9CiDmFu5y5fpxEjUblbgQEZPUBxEOoB7SQ51cBTz7ijr3pSSTIYNz32YiwoWB GWZQ== X-Gm-Message-State: AOAM532ZUzCfQtaIMZrxC6oxd1vGwMuXKgm5KqyaGjxFnyIfXBs96L9W jrQQogvPs10niVM+66u7L9N7G67WGq0tnWF/MCPEIpeD7JEwAuR6s+Y9eDAQ9RfSrbvlKJPELVd uLm0ibZbgzHOkp2W0efNcddJAO0XuM6amzDa3xbsTpfPQo4N+pJDVUodPuYAcFRzmllJPnHJZN+ QDx7uF1t/1d7WMsqAbSOT/FXmYeYjkcNxebOehRpz1ynabSMZSVwVAwFCUglTKJ1ab79I1mbU19 xkq X-Google-Smtp-Source: ABdhPJzsJ/6fWFl4zIXL9R7sVzWbP2D3wBdIMOqAaJZ0PupYHyPRvnADc7dqsVhCpgbwyvwJXXDoaRmSBNxgLaooqs4= X-Received: by 2002:a4a:7b4b:: with SMTP id l72mr11039464ooc.9.1627406291172; Tue, 27 Jul 2021 10:18:11 -0700 (PDT) MIME-Version: 1.0 References: <330928.1627402967@sss.pgh.pa.us> In-Reply-To: <330928.1627402967@sss.pgh.pa.us> From: Simon Riggs Date: Tue, 27 Jul 2021 18:18:00 +0100 Message-ID: Subject: Re: pgsql: Allow numeric scale to be negative or greater than precision. To: Tom Lane Cc: Dean Rasheed , pgsql-committers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 27 Jul 2021 at 17:22, Tom Lane wrote: > > Simon Riggs writes: > > This is for migration? > > Yeah, compatibility with some other DBMSes that allow this. > > > Or does it mean very small values now occupy less space since we store > > fewer zeros? > > It won't affect space consumption at all, as NUMERIC has never stored > leading or trailing zeroes. (Modulo the fact that "zero" here means > a base-NDIGIT digit.) Thanks, just trying to understand what that was for. -- Simon Riggs http://www.EnterpriseDB.com/