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 1mdR0s-0006xt-5O for pgsql-general@arkaria.postgresql.org; Thu, 21 Oct 2021 05:53:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mdR0q-0002iu-SP for pgsql-general@arkaria.postgresql.org; Thu, 21 Oct 2021 05:53:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdR0q-0002ij-Iz for pgsql-general@lists.postgresql.org; Thu, 21 Oct 2021 05:53:12 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mdR0n-00031v-DV for pgsql-general@postgresql.org; Thu, 21 Oct 2021 05:53:11 +0000 Received: by mail-wr1-x436.google.com with SMTP id r10so46940wra.12 for ; Wed, 20 Oct 2021 22:53:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=6EYE0Mq8uqnwP7folMPfFWe+HaNMoImkwkIxg+YPrLI=; b=8IDREzpuG8UHxI09AyggpzjhQpUVHe0Z9YN0QInsCtk180qELjytpoLwJq1Wh+mOT9 E63Figjs0m4yAl9u4IjzTgye8arBN5rzu19jUUIyiRKy0zGeeWF4m9xmqooVdcqq5AuX jApPWQnSPCVtRK4lppnaNrRFfFdngRhmu4jRMPQvUguBsagTnBwqfN7wgfUPF/o3+KYQ dwF1L23r5hvOdueiSnnLXvwWKoB4/BL+R94h26i4loH3enk8Itj03DMBgoNS+GkXWkta IUEw8++095Yl5pk1KfpufRZDrjYiyrFcxPDvDyHPW98lNSFrY4SDdIRYvCWDU9vp40gp jZTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=6EYE0Mq8uqnwP7folMPfFWe+HaNMoImkwkIxg+YPrLI=; b=POqJBek7vmjuq26GyD3r2mhtMk6XvgTWD0hab9lO8w7oJPAXEGvXiXeUgGifftSanD D5Je3O8XkOxcMMG9a473OHaoocnbGwxfkNKcJ9uTBmz3vVXNVzwF3quNBP472aoeHYaF u/a5ITGJx/7skyO9b6T7LrF3xVo2dSlBdZP5XTbRMmrzWiL5F7ewkEaWh2LEUnZgTSaL YsxT40hqb89GAgR5geBoCgxhtvE21X+zjn1Vld5FVANxnNWsUQ0lvKUuKefIs9L6/JCM 4WowCLKZBlXaJh9+nLeKrlBqm+9GL1sw5A/cDdKYWZxgfkE8pSiUinUHvG1avpsoe7jM MQNg== X-Gm-Message-State: AOAM532rwlIPRPavLWXll2PGBF8zltT2oN81G5dwl0wYNI4bpYpshXTK aFKUy9zLUORdBeHHnlLXqk51yttWpOA= X-Google-Smtp-Source: ABdhPJw2lqVYvFAgjUSaq4GrxuX6k/eUrU/LXUnAaO+TS0rcuttLC11HdqBnjCLNW/QbwgnX4/EI9g== X-Received: by 2002:adf:e60a:: with SMTP id p10mr4670451wrm.306.1634795588066; Wed, 20 Oct 2021 22:53:08 -0700 (PDT) Received: from localhost.localdomain (62-46-251-185.adsl.highway.telekom.at. [62.46.251.185]) by smtp.gmail.com with ESMTPSA id t12sm4470376wmq.44.2021.10.20.22.53.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Oct 2021 22:53:07 -0700 (PDT) Message-ID: <18daaa4fb24c011b851fa88161c8ac86e335109e.camel@cybertec.at> Subject: Re: pg_class.oid at 4B From: Laurenz Albe To: Radoslav Nedyalkov , pgsql-general Date: Thu, 21 Oct 2021 07:53:07 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-2.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2021-10-20 at 23:29 +0300, Radoslav Nedyalkov wrote: > We have a busy database that has oid increasing with 50-100M  per month. > There is no oid type across user attributes anywhere nor user tables with oids; > Not sure where this generation comes from. If you can hint me, it would be great. > Also what happens when pg_class.oid reaches 4B. > pg_class itself is ~40K. Hard to say, perhaps you are creating lots of temporary tables (watch out for pg_attribute bloat!). The OID counter will simply wrap around, but there will be no duplicate OIDs in pg_class. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com