Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ioSoM-0003eU-Iz for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Jan 2020 13:52:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ioSoL-00085o-DB for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Jan 2020 13:52:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ioSoL-00085h-5A for pgsql-bugs@lists.postgresql.org; Mon, 06 Jan 2020 13:52:49 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ioSoE-0003kq-7P for pgsql-bugs@lists.postgresql.org; Mon, 06 Jan 2020 13:52:48 +0000 Received: by mail-wr1-x444.google.com with SMTP id t2so49686269wrr.1 for ; Mon, 06 Jan 2020 05:52:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=JBjJFVDdTMIdbxViNBGt3fQ5tEmN87ASL9KuKPZs/1A=; b=2MXV+UvkjfOiLC543r2MLnnM1b7gcbiLASS/46KNvZDNVWgkqt0T3E+7nIqFnW2GbD DrP5A0520JexJ0zrdAcgoHhVUxSqJkrkHoUFjOtfwVTZj7Laait/es//94mTRuRPBWwF zjQ4IstZ4x578ISRoZRnbZdtzZ8H59O0i6Oy2gWJc7WX0oSKJPoGGb6vgTNALeGpGjtV d3F8ASrUM6ppWRnEIQqr9oSELpgqUBs8gyWMd1S3dGmT7fOTJmqmD/KruHvdStWQPI0G 8Zjxxc6DBRtfN2iWWasWEEVZVMki8WVe9NRQTtcidiMYAxZQ9D91ta4VBQ8hx/+iI4a1 wRwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=JBjJFVDdTMIdbxViNBGt3fQ5tEmN87ASL9KuKPZs/1A=; b=NMjhPcKEi9G8emsWTyqqrLUgCp5pF1bMxyEcWAFoBlbChXyWKgLJeoulJZILPiSD5k W21w2T/BmP8VRkcAamkX7110ZbrM6xyQ3hcR1xpJ+/Jpc40+26wTyuUjN1f+p/gnYZe0 vbF1fXNOak2Yu4gpL5XG6hHNNPW05SNxElceIilcCpsM72ZeVlrDGQ2L6XfDIbZLpXrN 9E/4OvNYR7YmjLfrlnITjyWiGEZQpeJKu8Re3A9hG6+MyZtB6OLEqdDMsvoFHMnYewAm Ww0CQ2A3s+/74WsmnaYtFnapc2jmOK+67KCuf83r1kda2Skf7rVN/rGdZQbvolOriNXB LH0g== X-Gm-Message-State: APjAAAUuKVZ9QKFFogM834BatZuiDiCnLtU/fhjIa79oyn/ReALO71zs qhljso5EujOK10z54QqcdSYoHF+ZF/U= X-Google-Smtp-Source: APXvYqyLDTA83Kz5thOUPUWTjyBEvfDESEWhT/Wt3pqODV/s2C0IhkwU4T77wVW06fl6LrnD25V7ZA== X-Received: by 2002:adf:df0e:: with SMTP id y14mr36356339wrl.377.1578318760357; Mon, 06 Jan 2020 05:52:40 -0800 (PST) Received: from localhost (ip-86-49-253-92.net.upcbroadband.cz. [86.49.253.92]) by smtp.gmail.com with ESMTPSA id g18sm22640124wmh.48.2020.01.06.05.52.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 05:52:39 -0800 (PST) Date: Mon, 6 Jan 2020 14:52:38 +0100 From: Tomas Vondra To: =?utf-8?B?ZueahOaipg==?= <1728565484@qq.com> Cc: pgsql-bugs Subject: Re: Report bug! Message-ID: <20200106135238.rkrt6kskppg4unss@development> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Jan 06, 2020 at 06:22:53PM +0800, f的梦 wrote: >I want to report a bug for PostgreSQL 9.6.1 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4), 64-bit > >I can't create account, so I can only send it here. > > >/copy command will not trigger increament of a table's pk. > > >How I get this problem? > > >``` > \copy one_off_coupon(payload,tag, expire_at) from '/tmp/ldj.csv' delimiter as ',' csv quote as '"'; >``` > > >``` >select * from one_off_coupon >``` > > >The list is success loaded and id correct ranged 1-7000. > > >OK, Here is the problem: > > >When I try `insert into one_off_coupon(payload) values('111')`, it reports error `pk brabra conflict`. > > >Then I print >``` >select nextval('one_off_coupon_id_seq'); >``` >It is `47`,so far away from 7000. > I think we need to see '\d one_off_coupon'. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services