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 1qj1hJ-008zKH-Nk for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Sep 2023 18:13:13 +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 1qj1hI-001oAH-Ah for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Sep 2023 18:13:12 +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 1qj1hI-001o9w-0A for pgsql-hackers@lists.postgresql.org; Wed, 20 Sep 2023 18:13:12 +0000 Received: from mail-oa1-x32.google.com ([2001:4860:4864:20::32]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qj1hB-005fRw-5c for pgsql-hackers@lists.postgresql.org; Wed, 20 Sep 2023 18:13:10 +0000 Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-1c504386370so68012fac.1 for ; Wed, 20 Sep 2023 11:13:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neon-tech.20230601.gappssmtp.com; s=20230601; t=1695233584; x=1695838384; darn=lists.postgresql.org; h=in-reply-to:references:subject:cc:from:to:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=MIjarkkGUd20NED1HhNLZwbciytrnKn1XULy+HqtOcY=; b=2MW9bQbML85Xy8kQZ1vDc0M5G8q927zlQY0OPjuKrFY4+0QHIvAThUbUFkxpVvtE8T eu9AJOs7irFkbUVLrLjXS1MaLx4ITjnHgiKUxKsiT5UvQNaP5IMr80VkxWHjzWN7XyuR PNQHWeUBejRHnc3St5lBe7aw+lJmUCwRS0TKqsPrE5l4UmSUTfmmEp2jjGsiETODl7wf 8Qr2FsThed0hyoi5yN3n91rtMimElbDFvhBAoCbfGpfwwe7Pl3AAMA7RVWyxnCHWPwP6 HBCL9Iq8SJ6rEYfVmDSQdPZFTeT2V7ptrPCHS0tzKo/NiFsLoA9DLyqtg9JhAFXAGLLC aBLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695233584; x=1695838384; h=in-reply-to:references:subject:cc:from:to:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=MIjarkkGUd20NED1HhNLZwbciytrnKn1XULy+HqtOcY=; b=Mzqmn3RpiyGz49l8shqU8GXYPettTd75U40CJhGmySeQpc7pGIg4JDIy9OdNtnFbm/ oJFu+Lt/8si7Pw+/3WdQ9HEpiPqlDicuN4ZI/PpF7ijH1FJyVDdy2XBlHtwFS2NiQyzu EY1gclhXTbzbu3af7y+/T6b2bghcU5pb/KYY1xbKduhaYc+rafqB49rji5AC1aKos7W8 pQey/x4dCYO+/iI1DGbhdEgLY6XTQSyJugl16WTo6ESxB8sVc9WMrxEJUIFntSI712ux 7sFuAK5MdiITZU5CSwvzM0Uimb+S46t9PSB2NIWLAE/q5LfD+bHSQ5TUrbOQG7N2Ufsz gcHg== X-Gm-Message-State: AOJu0Yw9mn4wnnmbskcV1opkZsXzS14z29PT2OC2Ba6tTOj5As67TbVE urtfz9F4MlowRcuUZ8pFfupx3WHidrakhWmOZRk= X-Google-Smtp-Source: AGHT+IHueZU036Je3XrA3FrbYB1kQZle6zfYiuoQhnLedxfnxxLm7o5zTMuTpIMWJFPtYH7d52jmMw== X-Received: by 2002:a05:6870:56a4:b0:1ba:2c95:a168 with SMTP id p36-20020a05687056a400b001ba2c95a168mr3551958oao.35.1695233584578; Wed, 20 Sep 2023 11:13:04 -0700 (PDT) Received: from localhost ([2607:fb91:1284:cc4d:3996:e070:71ee:42fb]) by smtp.gmail.com with ESMTPSA id lq9-20020a0568708dc900b001d67e424fd0sm5758895oab.6.2023.09.20.11.13.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Sep 2023 11:13:04 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; format=Flowed Date: Wed, 20 Sep 2023 13:13:03 -0500 Message-Id: To: "Alvaro Herrera" From: "Tristan Partin" Cc: "Pg Hackers" Subject: Re: pg_upgrade --check fails to warn about abstime X-Mailer: aerc 0.15.2-211-g37d5fc691aff References: <202309201758.vox63zqcqpi4@alvherre.pgsql> In-Reply-To: <202309201758.vox63zqcqpi4@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed Sep 20, 2023 at 12:58 PM CDT, Alvaro Herrera wrote: > On 2023-Sep-20, Tristan Partin wrote: > > > > +/* > > > + * check_for_removed_data_type_usage > > > + * > > > + * similar to the above, but for types that were removed in 1= 2. > > > + */ > > > +static void > > > +check_for_removed_data_type_usage(ClusterInfo *cluster, const char *= datatype) > >=20 > > Seems like you could make this more generic instead of hardcoding versi= on > > 12, and then you could use it for any future removed types as well. > > Yeah, I thought about that, and then closed that with "we can whack it > around when we need it". At this point I imagine there's very few other > datatypes we can remove from the core server, if any. Makes complete sense to me. Patch looks good to me with one comment. > + pg_fatal("Your installation contains the \"%s\" data typ= e in user tables.\n" > + "Data type \"%s\" has been removed in P= ostgreSQL version 12,\n" > + "so this cluster cannot currently be up= graded. You can drop the\n" > + "problem columns, or change them to ano= ther data type, and restart\n" > + "the upgrade. A list of the problem co= lumns is in the file:\n" > + " %s", datatype, datatype, output_pa= th); I would wrap the second \"%s\" in commas. > Data type, "abstime", has been... Maybe also add a "The" to start that sentence to make it less terse. Up=20 to you. --=20 Tristan Partin Neon (https://neon.tech)