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 1tyVSK-007d70-S9 for pgsql-hackers@arkaria.postgresql.org; Sat, 29 Mar 2025 12:38:32 +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 1tyVSJ-00ANI6-Is for pgsql-hackers@arkaria.postgresql.org; Sat, 29 Mar 2025 12:38:31 +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 1tyVSJ-00ANHy-9c for pgsql-hackers@lists.postgresql.org; Sat, 29 Mar 2025 12:38:31 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tyVSH-001nQE-2N for pgsql-hackers@postgresql.org; Sat, 29 Mar 2025 12:38:30 +0000 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-54b10594812so891989e87.1 for ; Sat, 29 Mar 2025 05:38:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743251907; x=1743856707; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6NIZ3NJE49MVQknMzEV8MATC4/6hZHsd+5gQh/dzUSk=; b=gRTnhgpn2wAqe9q8cViqXSUcxXLgolI19Bhj1t30/WVMqIOAk8vQBhx7cWAfXugJyx gGb4JOtsxswa9R9TAyc1ut0eUeE7J6/HK1IteTPN0vXQSIPYSvP1T7DrSnxWZoupBTuc kQHzc8RpkdgazMkRUr4VXE1zu9u6bsA5S6f37bn9oztCFkqF0M4Z6B8hf4/pEKUzdY9q L2aM5DWZE0+fw2dUkn2NkI7dzzhK2zyGrnWCykkgeulZghD/s1KPrsyVpkZX/aLb5oFO f8KgNOhfBT0693kCAIVTdbJRzXpQP/EN+Yz/2aWoaTg6N5zD8Z2bGp2UNbW1QtCUzI2l rQMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743251907; x=1743856707; h=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=6NIZ3NJE49MVQknMzEV8MATC4/6hZHsd+5gQh/dzUSk=; b=BBJCgHvtbsFMeh1JqDJsC32rQwAdqk7HlpIhD7Xeg9H7+hITYWOpargnp9mhsve0CG qlIW1WwYQe+D2qQWoVcB1Xj87tgbQis2NJ2apuCV1SSduhSn8I+ysMhGH2OBAT5mJSJG kkCm2y1ML9SIIE6bA28Z/qAY1W1mXi0jY36oIeSlHZGlbVxXWSbl3+h36rR1jTCL9euN JbTkjWEfX4/pJW0ZdOIVxzU6HyNrUP0DzF4+0ca+q1eHk8QVWIHAgSoUhEKDcc0sKWSz KoaxLQbMoqZXbdRjbNMwAWi/B9IC9VGaxzofean/rLqNXQmWEBYC4YnQqvD/MUUH+wEK KWKg== X-Gm-Message-State: AOJu0YwMpuBt9HhlGZ0tqvTsnoAITHKtQu13AKSt69wmGTrz1AVZkoZV KMaaTy0gz5flnjQinrPqT1M9hpgvlJdc28WG8utMH9VqR8i8kxnrKR/3GUM65zvLGXXKoTTVnOS 9p4p5hetIZaM4on9H5jP8o0bCdds= X-Gm-Gg: ASbGnct2gMZ5Oafi4pxKX4aljVGc6SB/qnyNoLa2jFMMCW5ni4s0+qyEAcdYgyDTjCV jTu8z5SNNKmI8uPzAl8MFzmnkl3FQ/81cMAne1hwLWlAeCzm60yijt4X3pPV9WhEqF7fnpjnzPT 8kyYlR43b8sxB6BLBCy4hsgZQttA== X-Google-Smtp-Source: AGHT+IGVekGel6yCxAfUAhqABrWdaiHg4bE1MAXcuJvvW0EE4K6a+Rmih/PRolNA2ehwyhoW+4GrVdQbB0/0mDi6nNw= X-Received: by 2002:a05:6512:220b:b0:54a:cc04:e77e with SMTP id 2adb3069b0e04-54b1115d0abmr737463e87.44.1743251906578; Sat, 29 Mar 2025 05:38:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Kirill Reshke Date: Sat, 29 Mar 2025 15:38:15 +0300 X-Gm-Features: AQ5f1Jrkh7qDMVKy9UzHhAi0LwkBpr44oHSCIlkd7gjsXpd_ilUFhOx5Tf2yOnw Message-ID: Subject: Re: in BeginCopyTo make materialized view using COPY TO instead of COPY (query). To: jian he Cc: PostgreSQL-development , Tom Lane , Michael Paquier Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, 29 Mar 2025 at 09:47, jian he wrote: > > will use {table_beginscan, table_scan_getnextslot, table_endscan} > to output the data. > but views don't have storage, table_beginscan mechanism won't work. > > so i don't think this is possible for view. Well... So you are saying that let us have inconsistent features because of how things are implemented in core... I don't sure I'm buying that, but whatever, let's hear some other voices from the community. My argument is that while we are working on it, perhaps we should revise certain implementation specifics along the way. However, this is merely my opinion on the matter. -- Best regards, Kirill Reshke