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 1tWYC1-00HQYp-RB for pgsql-hackers@arkaria.postgresql.org; Sat, 11 Jan 2025 09:54: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 1tWYC0-007t7A-1a for pgsql-hackers@arkaria.postgresql.org; Sat, 11 Jan 2025 09:54:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tWYBz-007t6d-MM for pgsql-hackers@lists.postgresql.org; Sat, 11 Jan 2025 09:54:07 +0000 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tWYBw-0013Ss-0d for pgsql-hackers@lists.postgresql.org; Sat, 11 Jan 2025 09:54:06 +0000 Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-304d760f12aso22395391fa.2 for ; Sat, 11 Jan 2025 01:54:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736589244; x=1737194044; 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=ihxbe3cICTi+JpNvqFkhyir1V1zHTK5xlH06GXYdPXE=; b=RzrkaU5BkE3MRdw/wBau2I7uqhew83atmysy97e69dqTOLo+myeh8xq8dAyCjmrhLq 4qXrkOMAjiKqlDYQTOX+Z3ZEddzld8TesRqdXdFOe6MLQkNLr6ku/ugkrRwdf16Q9XkA 2qs3wo9k3nMv7H+MlEQMYzMvIr8ePPCJOw4fLRBaGV7R8XffY6r+UCf/mZ2+G1MXlB4+ WQbaXJm3zAVmyOPpGFHmE3PXkeSJRYp4J9bW1cCYTM87nFvaZEKCA5WZJOcnbEMvjeTK +XN+yRPYmA6fkN+T6g3Y3fkz9GOEzQO0Gb/ldsYcwXqCjcjcZKiD+iTZVNwHjXsd6iZ1 myww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736589244; x=1737194044; 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=ihxbe3cICTi+JpNvqFkhyir1V1zHTK5xlH06GXYdPXE=; b=CcmmqVPnGbiTaaG4sAqzct4hCNLHHE/8udVeLAkVDSZ/gSLCQdu4oS9WG6adW4pI+V kwTHd/t0zYknFWiGV/SJRaJ11EotJvqKD/6aOcjM/MamduZLUhVHlSMbUBJC5Nd2nbcv qkZrZ7i317ccex/em6jSprmdhuwIcCnT3PxMpH2dqx/dXW1bd5bmE/gu1DGQJZ1sU0lk IScxj5iSMJKJc3ZOon/I6j0M1sYGWFfcCQ41pINF39tWXBCwFwqS6TSnfNigw1LO+a9f tHYfF4tqWq1DmWjI7dcK+MeKPWturBsNqkqAYudNt316Dx+9DYdA0Srj5R1bwO08X0Nb DN4A== X-Forwarded-Encrypted: i=1; AJvYcCUDsFFV/+kJuPoM48Vrzts4pTwDriYFwKC9lifAUFhu6oOvN/quIFdzGhHo4a9gZMX45fp1JsC6bqtAz8cW@lists.postgresql.org X-Gm-Message-State: AOJu0Ywr9i+dBHKJMV00irZvpYbFJU7W9AmGlrEQ+xDUdW8SoqL0W9It ZLpjNC80LvKGrT/13f6dDYM8riEE7dU9XXcMLWVN/RaCe2w2JFwdYuF4lrmsg71hcO56qYN+uQ6 VLhSvNDKkXhFrtOTKptuFQ4emVLEbau5o X-Gm-Gg: ASbGncumPS6Kphc2Yn92SwVKKjqJsEo/1X8SK+DJgyJPDqck7zznFRPHieQGw9aNUd4 LXylcmMPc4T1OPHlLdCNpE6ySrNwMFl1JwQ15BKQHl1lZxewupmEO X-Google-Smtp-Source: AGHT+IHlrJU8/wf8sCJmxMA9WhiLgcerzF0lRtHISIDMthJZkesPZBiX2FBTyAgRTAWFNqhtmcxBMdQeH4mWTXPxY2k= X-Received: by 2002:a05:651c:1595:b0:306:f7b:20b with SMTP id 38308e7fff4ca-3060f7b02b1mr12096571fa.24.1736589243360; Sat, 11 Jan 2025 01:54:03 -0800 (PST) MIME-Version: 1.0 References: <04bf425ad1b15a4daefe96c478a5253b@oss.nttdata.com> <20240206191937.72eaf0ccc20cfea37944b422@sraoss.co.jp> <76da9fcc-93c5-4053-872e-12932a95356d@uni-muenster.de> <6eac5b45-7f45-4c7a-aae1-e90db8be2e08@uni-muenster.de> <3d6b5885-16a1-475d-b56f-41701c48d9d4@uni-muenster.de> <63595e8f-a245-4335-aa22-7e449a70e210@oss.nttdata.com> <07587c36-18b3-4ccb-b5fb-579bcb04ed37@oss.nttdata.com> In-Reply-To: From: Kirill Reshke Date: Sat, 11 Jan 2025 14:53:52 +0500 X-Gm-Features: AbW1kvajM3k9vkEseIuNw4iCrkc96LLmL97YghtTS83D6PsCSJxgNZJCwKEVEE8 Message-ID: Subject: Re: Change COPY ... ON_ERROR ignore to ON_ERROR ignore_row To: jian he Cc: Fujii Masao , Jim Jones , "David G. Johnston" , Yugo NAGATA , torikoshia , 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 On Fri, 10 Jan 2025 at 11:38, jian he wrote: > I think there are three remaining issues that may need more attention > 1. > Table 27.42. pg_stat_progress_copy View > (pg_stat_progress_copy) > column pg_stat_progress_copy.tuples_skipped now the description is > "" > When the ON_ERROR option is set to ignore, this value shows the number of tuples > skipped due to malformed data. When the ON_ERROR option is set to set_to_null, > this value shows the number of tuples where malformed data was converted to > NULL. > """ > now the column name tuples_skipped would not be that suitable for > (on_error set_to_null). > since now it is not tuple skipped, it is in a tuple some value was set to null. Indeed this is something we need to fix. > Or > we can skip progress reports for (on_error set_to_null) case. Maybe we can add a `malformed_tuples` column to this view? > 3. do we settled (on_error set_to_null) syntax. I think so. I prefer this syntax to others discussed in this thread. -- Best regards, Kirill Reshke