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 1tUjW9-002EtT-8C for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Jan 2025 09:35:25 +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 1tUjW6-006zN6-TX for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Jan 2025 09:35:22 +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 1tUjW6-006zMF-J4 for pgsql-hackers@lists.postgresql.org; Mon, 06 Jan 2025 09:35:22 +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.96) (envelope-from ) id 1tUjW3-00080k-3D for pgsql-hackers@lists.postgresql.org; Mon, 06 Jan 2025 09:35:21 +0000 Received: by mail-vs1-xe2b.google.com with SMTP id ada2fe7eead31-4afdf096fc5so3025283137.2 for ; Mon, 06 Jan 2025 01:35:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736156119; x=1736760919; darn=lists.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=5+uTtC2VR4zN6sRIL0H0S1W8qpd0dNS0AAnGdttwcb8=; b=JbFXPBOkYhL/i4Lwgo9GBvzRb54ArevyG8e12EagF+jvx9jCOih93y0FrlrHazdB4b ocuHhVgbwik1UqAsr+LIyUUNAEqgF1IDVOmR11hf/5Je1o2GiAcwoZC2YbR27QIRwmqy gbZfGgXZKdV5GFJiNYJ+eckmDub1THsOAOXmxUgVlgSSoqWXWVVi1UmD1Q/yDQ6OoMkS PtxTkLdUhbiCqTbgzXG96GMsfcl8HLpXqaQikWfaTDtSRzSfVy6KXUVIohILs5XdUrhk H6bvKAEt4WjC6CT8cEKWQi9D7og5s4NCdJqBpkwtP+ydh481YUR3+F0Fo7YbHyUHEkVc x+3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736156119; x=1736760919; 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=5+uTtC2VR4zN6sRIL0H0S1W8qpd0dNS0AAnGdttwcb8=; b=jIqKg49fN0njpzeDIl+IzNCn95KGY3d2Pth+Eg9Qv5xZGZJ3uqZF1MOxQYtzuKQcWq QeUacnz2Gu7B1EZ7O/MgHFOz2JNCE90gJuTLvQegI1SIwkeBbCBKl8dEOGW6TTQJjeYt 3SChOMOEMawT+P/fEPZK4MMtpyxuY92UWQtJeMf9i9EmI273qYnJ8i8/cTV0OgME+wsV 8UEHUZsASOYoXAUnKc2NgXVoKF5EOzIfHo3Rc/TBVdUxuOGIbjzbt2J4R7pCuar0a6BW ZjsAS/iIa/7OebxNqY59ULHkSFRFVP3uEC5nwLDglFZi/lga0vx6aLoO+Qo877zAyRET Qniw== X-Gm-Message-State: AOJu0YxueXSjgXiX1SnXYQr2Bur4pIYYOwjO3TtWr9ZwYfd5gIzpkD0k XOLZqe7dMumMjY/MZJ3Hg+yy4qQPFjkeTCF2qf348GXvf13QsEblJR8+s/oKB4gkAOK/kkeZOEF KiwJ9ildwXIegFmBctvKW9ZvKyoKIjX/NjxY= X-Gm-Gg: ASbGncsrb8Uueo4mLGwzJVicezIFBuXYcn2IudXTDi22MYxqQKBrHstZl557gTFYV1B LoeFgNrvkQFDFRUeqQWsezrLPb6y0j83++Ogl X-Google-Smtp-Source: AGHT+IGzhHrlbyWyRXWOizprCrIg3sDIWM/7unL1r2Ex6moWtIMDpZdIlkp9oulca9XrRl3wReF7pSy+/CDM1dJZV/0= X-Received: by 2002:a05:6102:5689:b0:4b1:1232:def with SMTP id ada2fe7eead31-4b2cc31a411mr41986394137.4.1736156119278; Mon, 06 Jan 2025 01:35:19 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: jian he Date: Mon, 6 Jan 2025 17:34:43 +0800 Message-ID: Subject: Re: in BeginCopyTo make materialized view using COPY TO instead of COPY (query). To: Michael Paquier Cc: PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk hi. about this issue, last email in 2012 (https://postgr.es/m/8967.1353167301@sss.pgh.pa.us) """ Even if it happens to be trivial in the current patch, it's an added functional requirement that we might later regret having cavalierly signed up for. And, as noted upthread, relations that support only one direction of COPY don't exist at the moment; that would be adding an asymmetry that we might later regret, too. regards, tom lane """ but now we have numerous COPY options that work solely in a single direction of COPY. I think now we can make some kind of relation (pg_class.relkind) that only works in one direction of COPY.