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 1inQt9-00025c-Iv for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Jan 2020 17:37:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1inQt8-000324-BM for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Jan 2020 17:37:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1inQt7-00031u-RL for pgsql-hackers@lists.postgresql.org; Fri, 03 Jan 2020 17:37:30 +0000 Received: from mail-qv1-xf44.google.com ([2607:f8b0:4864:20::f44]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1inQt0-0007UN-LG for pgsql-hackers@lists.postgresql.org; Fri, 03 Jan 2020 17:37:28 +0000 Received: by mail-qv1-xf44.google.com with SMTP id x1so16496665qvr.8 for ; Fri, 03 Jan 2020 09:37:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=bWF8R049KNq3nrkIdzIIHfuJ6/P3MQvmWCqzxQmx4Bo=; b=tXfj7hR21V3X+hHJsguJhdnEZIhJmpkzwPvGUkwwdirvBfj/eGt20AI8z5nYYhqj1r WCFHaMyLi0yjxYRWzAIioyHz+ZItMephO62fB2lg4RRJU1Wczb695x8/GAVtp1cDxMTc QWAI/PCnbIURPOZoUtxrru2twjRWvN1u17LeJ0UiR9pK7edrCZFxgo1J2DCzBlmIu4pg Thz3Ch7QDNi3EZhdX21SZK/t1IR9d33ZYifM+EUVXGc9n/8YvhWBPrKkTEWb182ypR6L OTAtp3PsNX7nR2We6VamOOdAhm6GUh7ve5C7qCSugSU8/KgLWJcrSNZCChci4yQYXMMQ Tl8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=bWF8R049KNq3nrkIdzIIHfuJ6/P3MQvmWCqzxQmx4Bo=; b=jK5wYK470F+HllvpsTZgG1KdaONPkuzdsU16tN/LfMI/es3HHSwJ05aJbp1/UlP0Am ooSGKSCaHcDZMxBQP8p1KhfG1GdwlBP0Smqn59qZBfY8Kusm354sNnn+R6yl6Yqv2B1g 8TW+dHfNVcBKTP6dVrFkNQTL2sZHNif08BMtONrEfKoBzpZ6xBvjQtBBHDnfG77Qy+jJ gSfrqt83bXFdjmzLrtJ/kDpHgWMwraYjdWFzOCOxMZ44xygLRHfoWZAdL17rhP//B+j2 NcmN18+i6Vb7/mXoH9NqpLWCXcpTSg3YApmaeL+ZzzCPnhclCxBGp8MUafU4f1IIY6kO T9Aw== X-Gm-Message-State: APjAAAWAnNQ1aZMPPBmAh+9iHWldej2wMOZMiU9wYQqwhAW9NLUgJfBq VMSpwsoWl0h/Iup71cJsO9Zncg== X-Google-Smtp-Source: APXvYqwwZqRWpTWCR8Yx1RBWnG3ampzl5Iub7oxnW+cRJiAVWnhGEIZgO/XMOEtCgcYqCVSE6pQCVA== X-Received: by 2002:a05:6214:6f0:: with SMTP id bk16mr69512615qvb.23.1578073041680; Fri, 03 Jan 2020 09:37:21 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([190.95.19.128]) by smtp.gmail.com with ESMTPSA id 24sm16916858qka.32.2020.01.03.09.37.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jan 2020 09:37:21 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 62A183005EA; Fri, 3 Jan 2020 14:37:19 -0300 (-03) Date: Fri, 3 Jan 2020 14:37:19 -0300 From: Alvaro Herrera To: Robert Haas Cc: Tom Lane , Peter Eisentraut , Dean Rasheed , Vik Fearing , Fabien COELHO , Chapman Flack , PostgreSQL Hackers Subject: Re: Greatest Common Divisor Message-ID: <20200103173719.GA9629@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Jan-03, Robert Haas wrote: > On Fri, Jan 3, 2020 at 10:23 AM Tom Lane wrote: > > Now, those functions were just exposing libc functionality, so there > > wasn't a lot of code to write. There might be a good argument that > > gcd isn't useful enough to justify the amount of code we'd have to > > add (especially if we allow it to scope-creep into needing to deal > > with "numeric" calculations). But I'm not on board with just > > dismissing it as uninteresting. > > Yeah. There's always the question with things like this as to whether > we ought to push certain things into contrib modules that are not > installed by default to avoid bloating the set of things built into > the core server. But it's hard to know where to draw the line. There's > no objective answer to the question of whether gcd() or sinh() is more > useful to have in core; The SQL standard's feature T622 requires trigonometric functions, while it doesn't list gcd() or anything of the sort, so there's that. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services