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 1t5KfZ-005PuQ-VZ for pgsql-bugs@arkaria.postgresql.org; Mon, 28 Oct 2024 08:00:10 +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 1t5KfW-004WYY-KD for pgsql-bugs@arkaria.postgresql.org; Mon, 28 Oct 2024 08:00:06 +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 1t5KfW-004WYP-9k for pgsql-bugs@lists.postgresql.org; Mon, 28 Oct 2024 08:00:06 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t5KfU-003EoQ-4Y for pgsql-bugs@lists.postgresql.org; Mon, 28 Oct 2024 08:00:05 +0000 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-539e5c15fd3so3447599e87.3 for ; Mon, 28 Oct 2024 01:00:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730102402; x=1730707202; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=4Vkb5Qw8AoKJQ3+RSCgI1xwsQZrcIMEM+GuM+AbPdec=; b=JQ561lrBTBExMwMEczjL1UPYKlt90I705CcTQxJwA1EO5uuMo896RFCqnmcR7sPLDS 39ZvFml55w6pqBaHZUaNO9Ksb0izxgODXDh91adOb/ZLwKxiCAplhz59yNza7yDgQDKu 6iRBQTRk0DbBCZOAMUmQDTmvXw1AuFPeW3uKX7ObNIKopyXSfn3fJFFVBuQfdfguOOvG /3sJ3HsH3NEOY56bWfTbocOMl3URBTDv31frfLZAk1DnWfKll9h1L7Mxl6z51xjrDv+7 Ehvf3+9Y/QWNRWqlxGANEvYg1BDD/KByX1WCWyo0MoR0qmK5mhpl/Zdzyee9ENPCQUxf 1Cyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730102402; x=1730707202; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4Vkb5Qw8AoKJQ3+RSCgI1xwsQZrcIMEM+GuM+AbPdec=; b=D83hhbYWLAbut/W2j2jt5sWsBJcXBcNQN5egFc2TA/3DDAI1UJCNnL/XrySND4VBjG xirPlj1jVtfp2TVIwUEX/x1uz4vmllXRyt7ynDFmO/+919pM9QKUeBnp7PGdx85SouOC iAd4kUuD0MHQaj4kt/KH1kN9PSYEiSxkM4sXBwYN1UINOIdqU/wFwbqW3Q94YOT+UQaA HOF8jsol+/2++CNIoOsFDMX3TKcmlLfcm/PmAkahyaA34Q6evVZNILMusBY9WhEmYkoc ZBxlzs8zPcduySmyOAglpkuzHNmHFe4/MhBIvbzq3aalAKTf7/zte81CfgQlXHubdbct MK0A== X-Gm-Message-State: AOJu0YxmNGB0pM7xY2JsdOeR7GMhQgbkTaLV/wgM34bXFL+YoqGokwKc rDEfIvX9HUn2Xc5fypIdxwlOL9husqOAF5tEKZ1CeNCWTKJMlmyx X-Google-Smtp-Source: AGHT+IGZUay0lVZX70xjqK/v84FRaTulBfqnL6Vzudt1PKSPI+wte4hmZiHMrB4jPGyxsKckX1MOkg== X-Received: by 2002:a05:6512:131e:b0:539:f7a2:65ac with SMTP id 2adb3069b0e04-53b348ee482mr2308560e87.35.1730102401853; Mon, 28 Oct 2024 01:00:01 -0700 (PDT) Received: from [1.0.0.7] ([178.155.24.36]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53b2e1c98d2sm1006054e87.222.2024.10.28.01.00.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Oct 2024 01:00:01 -0700 (PDT) Message-ID: Date: Mon, 28 Oct 2024 11:00:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: BUG #18674: Partitioned table doesn't depend on access method it uses Content-Language: en-US To: Michael Paquier , Kirill Reshke Cc: pgsql-bugs@lists.postgresql.org References: <18674-1ef01eceec278fab@postgresql.org> From: Alexander Lakhin In-Reply-To: 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 Hello Michael and Kirill, 28.10.2024 10:23, Michael Paquier wrote: > The path of adding the dependency between an AM and a table/matview is > heap_create_with_catalog() when these are defined. We can just expand > that for partitioned tables and simply fix the problem. Attached is a > patch to do that, with tests around create_am.sql based on USING > checking the contents of pg_depend. 0001-Fix-dependency....patch works for me, but while testing, I've also observed another questionable behavior: CREATE ACCESS METHOD heap2 TYPE TABLE HANDLER heap_tableam_handler; SET default_table_access_method = heap2; CREATE TABLE pt (a int) PARTITION BY LIST (a); \d+ pt doesn't show heap2 as access method for the table. Shouldn't default_table_access_method affect partitioned tables? Best regards. Alexander