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 1qxcB7-002DMQ-Pq for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Oct 2023 00:00:17 +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 1qxcB4-00HAOq-Gm for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Oct 2023 00:00:14 +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 1qxcB4-00HAOd-4F for pgsql-hackers@lists.postgresql.org; Tue, 31 Oct 2023 00:00:14 +0000 Received: from mail-vs1-xe2b.google.com ([2607:f8b0:4864:20::e2b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qxcB1-0037mD-Oq for pgsql-hackers@postgresql.org; Tue, 31 Oct 2023 00:00:12 +0000 Received: by mail-vs1-xe2b.google.com with SMTP id ada2fe7eead31-45853ab5556so2011549137.2 for ; Mon, 30 Oct 2023 17:00:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698710410; x=1699315210; darn=postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=zSHum1AfL//eBDJX2iepQZ2Ot4YL9sbB+IoNWr2Sg94=; b=iIiV1xme9Z95ERpV8LCv9FBh1k2HNCWwCuHPtBxQfc0znIbbL5iZF1VU9/0HoZDGmZ RppoJItL05RN3qGEzUnQQIAMH9CJst/oeiPR7a5I4Aq7wg9WDz6eGOpbz7U8ALmIlDqv 6pV933nWtqgevaRGQLO4+HZBMdDs78AhfZCwgx2jdrmcHo+vB1Q8TfdYAeGE2jSgehf2 x1rgBiipBC5wE0V3alM4/IOKS5uhFlvnywDCz5F0r/UK2HSxEPqu8vNLat8oo/zvO68g 7VwP9DjyS/RkI/3RQqCoqYqz/xhfvxe4rVWxYJdxztX7UttvfPDfTqVUrqeQ1Lnhz3uS /H6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698710410; x=1699315210; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=zSHum1AfL//eBDJX2iepQZ2Ot4YL9sbB+IoNWr2Sg94=; b=jVO6Z+TKbpSNkDaCBknp2p4XD8fX74IayB7SIHTF7UGKPom6gi70Af/xnUQxHsZmJ7 286J8va5x/WAwH98Bz8A+AMsmQUjhYrw0o/sV5Vi8vnKD8NtjB4Z2ykmtFpllr7mgGaY 72Uo/ZdDH1sdu4WR+NaV+tlN5lhTmM1YBvvDXk1FDnaHyK9LUbLXPsk62WmL/j5gALz4 MsXkfSpo4wM1IkC7od3KQwCd2W4yZNhrfStTxexiu6rkHbHdoBWhqUHHCdHrYV2g6rCK 2cbZ7hXgijCaR5M2z7fGJZCHNS8W3lcvuo5ztwsj8HbwgUdIucrpNso6PdQImeISFE/v aC7w== X-Gm-Message-State: AOJu0YwkK0riQAZxs0lsUt8I7psszElGJUMR/7Sq2egKclT0vesNSVTp 9GfrzIWo3BdbfYIzZpiAyGZp3GxNgQvpcq+KweB0q4+AriFaOg== X-Google-Smtp-Source: AGHT+IHj74V4eiCcgDXj4LUXUDmooUGML31BW788JEI6yModO8LKQBPJqCxn/5KH0+RYMJeZ6hdWkR74fiH/P01/i4g= X-Received: by 2002:a67:b80c:0:b0:458:1c00:c32f with SMTP id i12-20020a67b80c000000b004581c00c32fmr11475378vsf.34.1698710410308; Mon, 30 Oct 2023 17:00:10 -0700 (PDT) MIME-Version: 1.0 From: jian he Date: Tue, 31 Oct 2023 08:00:00 +0800 Message-ID: Subject: small erreport bug over partitioned table pgrowlocks module To: PostgreSQL-development Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk hi. erreport bug over partitioned table in pgrowlocks. BEGIN; CREATE TABLE fk_parted_pk (a int PRIMARY KEY) PARTITION BY LIST (a); SELECT * FROM pgrowlocks('fk_parted_pk'); ERROR: only heap AM is supported error should be the following part: if (rel->rd_rel->relkind == RELKIND_PARTITIONED_TABLE) ereport(ERROR, (errcode(ERRCODE_WRONG_OBJECT_TYPE), errmsg("\"%s\" is a partitioned table", RelationGetRelationName(rel)), errdetail("Partitioned tables do not contain rows.")));