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 1ghJue-0005Hb-QM for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Jan 2019 19:53:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ghJud-0005B2-Gd for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Jan 2019 19:53:15 +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 1ghJud-0005At-1o for pgsql-hackers@lists.postgresql.org; Wed, 09 Jan 2019 19:53:15 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ghJuV-0000VH-HM for pgsql-hackers@postgresql.org; Wed, 09 Jan 2019 19:53:13 +0000 Received: by mail-qt1-x842.google.com with SMTP id p17so9723288qtl.5 for ; Wed, 09 Jan 2019 11:53:07 -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=ZDQM2WPPp7kzPX+Yjl9HyDbmcZN/NqkSvG9CmpgcV2A=; b=Dt1hiJQDyxioWNRiMteIc6I2xMDlnVBdhyXJCCuOKSvVb0uDngECdBUiaZUIAWZ8D6 DQRVmcQDXLHvxuGCk2wZtILyaHS/r0spW+fiHSdP5kRZP1Cpd+wamQNRWzf2izB6C+sI zMo7cPBEd9t+iZRKsjk3ISjFAeQnmzmKmMronsKcXc30oni9IF4dTukK2PD7Is3Alf8P d/pqB9qfhv/cKvYu1K1FJuePXHWjfofzSHYL7060OHAdORvMdjZf4iFrRl9Co5rr0jcT JKlLdQD5M/xncJeUR+WG1f3jj3coJA6qQ+jzQTG8XOm5OQRU1WUt211jg1Yoy972wDW3 V3vw== 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=ZDQM2WPPp7kzPX+Yjl9HyDbmcZN/NqkSvG9CmpgcV2A=; b=FxMWRMBa0CGchjUdR8t+AMDKQhL/AmGr50Ayk3NyJoB3zSqUdlvLIN90siJaE3bsQp vJpb0LCTMQA1dJJnCG02ZL0gQ2cNGHrcmdNJY+Sj2IbrkV/2Z6Gc3Y+rlEb+1XAooijd 1f/sX1P3p2MlibtpEP+drhk1n90yvWDa9nAoFsveUtrIoTj1MjXBKE+6SPozpXdZIa0x SpU519LzlZJPVqhpSyT+2VcSiDgmfdMn3eDGMzyqZhtnkH7IZ26O0UEJ0zfaADK2HRif xVgtp9tWUpmZs4y254B5GQQxVttY18kKvCEhS0k5W9GJ73jfBgqaUwSct8KanX5uE4RH tPOg== X-Gm-Message-State: AJcUukdpFozUO1Zliwo/2BNbgjdRSe+CISsrc24D+o4e7Cou7wTkuEgA HEgRsuiziu6oa4OlgE5dL3zAFg== X-Google-Smtp-Source: ALg8bN6dgsGTwQbYl6zOIELstOz9pyNaq5UNJt/P/Gw9jzJaBvB5LQzz+ualyiWOWPRolUCGjfpG3Q== X-Received: by 2002:aed:35c5:: with SMTP id d5mr6963466qte.212.1547063586584; Wed, 09 Jan 2019 11:53:06 -0800 (PST) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id s36sm50916310qth.17.2019.01.09.11.53.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 Jan 2019 11:53:06 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 261AFA63; Wed, 9 Jan 2019 16:53:04 -0300 (-03) Date: Wed, 9 Jan 2019 16:53:04 -0300 From: Alvaro Herrera To: Tom Lane Cc: Andres Freund , John Naylor , Andrew Dunstan , Joerg Sonnenberger , David Rowley , John Naylor , PostgreSQL-development Subject: Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Message-ID: <201901091953.p3k2mqdwq5jk@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <12359.1547063064@sss.pgh.pa.us> User-Agent: NeoMutt/20180716-1013-2c1e88 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Jan-09, Tom Lane wrote: > We could make the index table still smaller if we wanted to reassign > a couple dozen high-numbered functions down to lower OIDs, but I dunno > if it's worth the trouble. It certainly isn't from a performance > standpoint, because those unused entry ranges will never be touched > in normal usage; but it'd make the server executable a couple KB smaller. Or two couples KB smaller, if we abandoned the idea that pg_proc OIDs must not collide with those in any other catalog, and we renumbered all functions to start at OID 1 or so. duplicate_oids would complain about that, though, I suppose ... and nobody who has ever hardcoded a function OID would love this idea much. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services