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 1t9MfE-009Xy7-4F for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Nov 2024 10:56:27 +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 1t9MfA-008LgC-Ca for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Nov 2024 10:56:24 +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 1t9Mf9-008Lg4-ID for pgsql-hackers@lists.postgresql.org; Fri, 08 Nov 2024 10:56:24 +0000 Received: from mail-oo1-xc31.google.com ([2607:f8b0:4864:20::c31]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t9Mf3-000n8j-D9 for pgsql-hackers@lists.postgresql.org; Fri, 08 Nov 2024 10:56:22 +0000 Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-5ebc5b4190eso1041187eaf.3 for ; Fri, 08 Nov 2024 02:56:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731063376; x=1731668176; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=6cedviuok4hu3o+wBsW1YoOFoBtcd0rZ32Uw5P8xlwc=; b=aybUWyDrSt1LeU1R31ZTKKryvETB/XNe5tkaOkIbIL3p4DszLVoXcan3oUCHceXv+R q4HFeKlyO15/LbhjSFFCxvjnYUd9o5iMq27xjRPfjRZHTffLN/knAi11ee5//RVcT8vW dT4cNxkhvy4angyWESxQXLs+hFGzAVQtDJSbfM/zofB+yoQX472zq/eficKfljuBdSEZ vvjlpahlsUKumYM+MtQjYjv3MbZYG9Nm7uN//nlxMaGma8VM+0SytYokLcdoy3UtUnPO bU1KdJxax8jRp1fUGxqe+WNn1UTIXGsWPi4qzDtDQs30h0WG2qdAYT+uGEMj2c7ZpMJO 7vlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731063376; x=1731668176; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6cedviuok4hu3o+wBsW1YoOFoBtcd0rZ32Uw5P8xlwc=; b=TcggSgcr00WZbLXjemiGSxWqxbBKBnrIaHHBrKzu8T394IVWTUHazWLGOq0I7C7PqF RvFsK9xXlluskrhRnvynOSZ5/iBKIPQTFhmN5/4kMMwle7X6aka9snWRehiTnmPFy/NB c8ht0ad0ocNGjaNHnTcFLL5xG5PzWH6RtufTt7rr+7AVl6Qh+gFux8qt0SnX0oX5fhwT fE/OHjR1hf5q+ne9Izu+hR1y9E78K4QYHJ7JRZQjXLGOBOlL2eQKfn1F5nT5cMioRQN3 n+Mr45BxLIT9dPyKpnY5PAGDfbhEWURQ7kj4C9YSobNEBD1/4YHxozxr+6Se8UqadkZa ZyCw== X-Gm-Message-State: AOJu0YzwUlczxC0iFWl7o04/M/5pW4dRwfUWWuM0rDs5JMA8ojqUNk/4 luh+fkzxZTQGUIPsfps0WuBiROD3B31K4+z4mGAX4toZp3rKye2NztFgSlakbeWok3G3dOtmPRg Rn+At9FhpK76XWoOfIUtURc8d/y8= X-Google-Smtp-Source: AGHT+IHJTf2WPGgvDrlxw61BAuKf4otYp6IHarppDqF9uwiGk/gmu1qSI9b0Ybb33U687o2sZTfIS2VmzC6EQj7dKi8= X-Received: by 2002:a05:6820:1f08:b0:5ee:74:4d35 with SMTP id 006d021491bc7-5ee57bb6560mr2253765eaf.2.1731063376564; Fri, 08 Nov 2024 02:56:16 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kapila Date: Fri, 8 Nov 2024 16:26:05 +0530 Message-ID: Subject: Re: Fix small typo, use InvalidRelFileNumber instead of InvalidOid To: Dilip Kumar Cc: PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Nov 8, 2024 at 3:17=E2=80=AFPM Dilip Kumar = wrote: > > It appears that we are passing InvalidOid instead of InvalidRelFileNumber= when calling index_create(). While this isn=E2=80=99t technically a bug, s= ince InvalidRelFileNumber is defined as InvalidOid, it=E2=80=99s preferable= to use the correct identifier for clarity and consistency. > Agreed. We already use InvalidRelFileNumber at one of the other callers in index_concurrently_create_copy(). Your patch looks good to me. --=20 With Regards, Amit Kapila.