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 1oOWzP-0002jw-AI for pgsql-general@arkaria.postgresql.org; Thu, 18 Aug 2022 04:18:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oOWzO-0004BH-88 for pgsql-general@arkaria.postgresql.org; Thu, 18 Aug 2022 04:18:38 +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 1oOWzN-0004B7-75 for pgsql-general@lists.postgresql.org; Thu, 18 Aug 2022 04:18:37 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oOWzK-00054P-2K for pgsql-general@lists.postgresql.org; Thu, 18 Aug 2022 04:18:36 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 620F35C019B; Thu, 18 Aug 2022 00:18:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 18 Aug 2022 00:18:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1660796312; x= 1660882712; bh=UmYZtnuw6UrfJRgduc2+tCLe5j4c2Us+MFMXIw7F/tw=; b=t UQJ1vu6MPIl+gOLIPebn3VDx/lrbpmkFHqmmCCxlNCaRvb5ehkXGan8BX7YsbQB0 d0ajS5Onxgg5E/ks+AvoppbdsjimrXH6GqyPugrrs+jpm9KwFs9cveI4TTTroA/v gf9wZb/ZVlZM2RYHkoS3tbvRev6HwCyq7KzvyVJ+zbmU4TshSd3rsaqRWYebP29K dX4QwG3Q3FdGbSab5FoyStjqdyEPQv25uvk+UPeXCwpnPm8kbIqAl9EUPxOgJUIX QdO9v4UkKwnKngQm4HNIIMXdQHVh9E3+ySl4jOijuyfCbIm8pT3m4bhlSpMxP8sQ fcGW+iK1zTFBsW2SSsbKg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1660796312; x=1660882712; bh=U mYZtnuw6UrfJRgduc2+tCLe5j4c2Us+MFMXIw7F/tw=; b=nxPVSGuPmqV99OHX4 PrVEpYJzl4cwH1bYPyWYcDc9RsF2VN3rz2uzxG+Ynat/2QasYM78Z0IuTkgj9SEZ V/SyLWrndPyLyBhsRX9b48HJMovaX0AFByUTXSj/AB31BrEAwbDf6WL9GKEZwPos Vc47hehGstiK0nqUd/nWY/OZ2EPbwa3Vd4X5/dZoAOcV3KPDLXzTo3d8urNm7d4w EjYYipfveHfdXYUra+QG8S7X44XH8q89kVBAhr89ZybLwEpi033kMEiFj2HPlFxQ PPxYhhKaXPUE3VHwIzeBien8bEh5bBlwYNp+1AoY84DTCY3J1S4WKE6+XJgvjCIs rQumQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehjedgkedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtje ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepvedvkeeihf duhffhtdekleegffduiefgteejgeffgffhteefleeludfgleelgeevnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvh gvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 18 Aug 2022 00:18:31 -0400 (EDT) Message-ID: Date: Wed, 17 Aug 2022 21:18:31 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: Different execution plan between PostgreSQL 8.2 and 12.5 Content-Language: en-US To: gzh , pgsql-general@lists.postgresql.org References: <6614e60.204d.182aee5aff0.Coremail.gzhcoder@126.com> From: Adrian Klaver In-Reply-To: <6614e60.204d.182aee5aff0.Coremail.gzhcoder@126.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/17/22 20:01, gzh wrote: > Hi, > > > I have had a Perl Website working for 7 years and have had no problems > > until a few weeks ago I replaced my database server with a newer one. Did you run ANALYZE on the 12.5 server after restoring the data to it? > > gzh > > -- Adrian Klaver adrian.klaver@aklaver.com