pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: davydenka@mail.ru
Subject: BUG #16434: some data lost
Date: Wed, 13 May 2020 15:07:57 +0000
Message-ID: <16434-7391c8b20f09a628@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      16434
Logged by:          Kos Dav
Email address:      davydenka@mail.ru
PostgreSQL version: 11.5
Operating system:   Ubuntu 11.5-3.pgdg18.04+1) on x86_64-pc-linux-gnu,
Description:        

i have parent table:
table
CREATE TABLE public.audit (
	id bigserial NOT NULL,
	... some fields....
	created_at timestamp NULL
);
and partitions for every month :
CREATE TABLE public.a202001 PARTITION OF public.audit    FOR VALUES FROM
('2020-01-01') TO ('2020-02-01');
CREATE TABLE public.a202002 PARTITION OF public.audit    FOR VALUES FROM
('2020-02-01') TO ('2020-03-01');
CREATE TABLE public.a202003 PARTITION OF public.audit    FOR VALUES FROM
('2020-03-01') TO ('2020-04-01')...
permissions on table only select, insert.
periodically i copy data from one partition table to foreign server via
fdw.
yesteday i copied data from patrition  a202003

insert into public.a202003_foreign select * from public.a202003;
INSERT 0 61140720   -- copied 61140720    rows

Today I double-checked the quantity
select count(*) from public.a202003;           -- result 60594707  
select count(*) from public.a202003_foreign;   -- result 61140720 -- all
copied rows
Part of data missing (from 2020/03/01 00:00 to 2020/03/01 17:35) in table
a202003.
 
destination table has all id in row -start 643096815, 643096816 ....
but source table has lost  part of data and id start from id 643642828...

how it is possible?  no errors in log file. system not restarted. uptime
since 2020-03-10 02:48:09



view thread (3+ messages)  latest in thread

Message-ID: <16434-7391c8b20f09a628@postgresql.org>
Permalink:  ../16434-7391c8b20f09a628@postgresql.org/
Also on:    postgresql.org/message-id/16434-7391c8b20f09a628@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, davydenka@mail.ru
  Subject: Re: BUG #16434: some data lost
  In-Reply-To: <16434-7391c8b20f09a628@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox