Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qvag8-0066vA-2c for pgsql-general@arkaria.postgresql.org; Wed, 25 Oct 2023 09:59:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qvag6-001gH8-JM for pgsql-general@arkaria.postgresql.org; Wed, 25 Oct 2023 09:59:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qvag6-001gGz-8t for pgsql-general@lists.postgresql.org; Wed, 25 Oct 2023 09:59:54 +0000 Received: from ssl.schlittermann.de ([46.38.236.101]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qvag3-002Dkn-H8 for pgsql-general@lists.postgresql.org; Wed, 25 Oct 2023 09:59:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=schlittermann.de; s=dd201504; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID: Content-Description:Content-ID:Resent-Cc:Resent-To; bh=0OuWPRegZqLfM9iNewOU6yV9yKAZl2LDIJOyJxoM1Wc=; b=hvtO+ZX+qSlsU431B0y1/CoQqG fE5MkKLAJEZfN8Ck/kG2U/S6Lv5cLLrJH2YxY0izynUU5n5hnnw5q7cJ5hZgArAd6U67WTOjZVwJo fY1ZnAswBqUE4qD4n4Kbp7Q+McvlW4DLJWvWY7z54pYU8kYt3Kat2MTlV5+rCGgHg6Bs=; Received: by ssl.schlittermann.de with esmtpsa (TLS1.3:TLS_AES_128_GCM_SHA256:128) (Exim 4.x) (envelope-from ) id 1qvag1-008e6Y-Nc; Wed, 25 Oct 2023 11:59:49 +0200 Message-ID: <2786bf60-266d-8f82-2dee-4a43b90e16bb@a-kretschmer.de> Date: Wed, 25 Oct 2023 11:59:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: REINDEX in tables Content-Language: en-US To: Matthias Apitz Cc: pgsql-general@lists.postgresql.org References: From: Andreas Kretschmer In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Am 25.10.23 um 11:57 schrieb Matthias Apitz: > El día miércoles, octubre 25, 2023 a las 11:33:11 +0200, Andreas Kretschmer escribió: > >> Am 25.10.23 um 11:24 schrieb Matthias Apitz: >>> We have a client who run REINDEX in certain tables of the database of >>> our application (on Linux with PostgreSQL 13.x): >>> >>> REINDEX TABLE CONCURRENTLY d83last; >>> REINDEX TABLE CONCURRENTLY d86plz; >>> REINDEX TABLE CONCURRENTLY ig_memtable; >>> REINDEX TABLE CONCURRENTLY ig_dictionary; >>> REINDEX TABLE CONCURRENTLY ig_dictionary; >>> REINDEX TABLE CONCURRENTLY d50zweig ; >>> REINDEX TABLE CONCURRENTLY d50zweig ; >>> >>> We as the software vendor and support, do not use or recommend this >>> procedure, because we have own SQL files for creating or deleting >>> indices in the around 400 tables. >>> >>> The client is now concerned about the issue that the number of >>> rows in some of the above tables has increased. Is this possible? >> In principle, there is nothing wrong with doing this in a maintenance >> window, for example. > But, this wasn't the question. It was: can it happen that the number of > rows in thze table will increase by this operation? no, reindex will not add rows to the table. Regards, Andreas -- Andreas Kretschmer - currently still (garden leave) Technical Account Manager (TAM) www.enterprisedb.com