pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedcheckpoint starting: time (insert statement hangs
3+ messages / 2 participants
[nested] [flat]
* checkpoint starting: time (insert statement hangs
@ 2020-04-21 16:10 Yannick Collette <yannickcollette@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Yannick Collette @ 2020-04-21 16:10 UTC (permalink / raw)
To: pgsql-admin@lists.postgresql.org
Hello,
I'm having an issue with Insert statement (through oracle_fdw) that hangs
after checkpoint starting is "time" instead of "xlog". see end of log
below.
Migrating data from Oracle (Windows 2008 R2) to Postgresql (Windows 2012
R2). Both systems are virtual machines residing on same host.
Over 200 migrations have been done without any issues. Trying to
understand what's happening here...
2020-04-20 14:02:36.103 EDT,5e9dbe0e.990,126,,,,00000,LOG: checkpoint
complete: wrote 112333 buffers (28.6%); 0 trans
2020-04-20 14:07:37.793 EDT,5e9dbe0e.990,131,,,,00000,LOG: checkpoint
starting: xlog
2020-04-20 14:09:50.222 EDT,5e9dbe0e.990,132,,,,00000,LOG: checkpoint
complete: wrote 112903 buffers (28.7%); 0 transaction log file(s) added, 0
removed, 44 recycled; write=132.240 s, sync=0.078 s, total=132.428 s; sync
files=8, longest=0.034 s, average=0.010 s; distance=720594 kB,
estimate=722102 kB
2020-04-20 14:10:03.574 EDT,5e9dbe0e.990,133,,,,00000,LOG: checkpoint
starting: xlog
2020-04-20 14:19:03.160 EDT,5e9dbe0e.990,134,,,,00000,LOG: checkpoint
complete: wrote 113066 buffers (28.8%); 0 transaction log file(s) added, 0
removed, 44 recycled; write=539.492 s, sync=0.000 s, total=539.586 s; sync
files=8, longest=0.004 s, average=0.001 s; distance=721542 kB,
estimate=722046 kB
2020-04-20 14:20:03.172 EDT,5e9dbe0e.990,135,,,,00000,LOG: checkpoint
starting: time
2020-04-20 14:29:03.255 EDT,5e9dbe0e.990,136,,,,00000,LOG: checkpoint
complete: wrote 97752 buffers (24.9%); 0 transaction log file(s) added, 0
removed, 44 recycled; write=539.911 s, sync=0.000 s, total=540.083 s; sync
files=7, longest=0.004 s, average=0.001 s; distance=623883 kB,
estimate=712230 kB
The transaction still active in pg_stat_activity but not writing on disk
since last checkpoint complete. Non errors after last checkpoint. Also no
errors in logs on Oracle side.
Any help or hints would be greatly appreciated.
Thank in advance!
Yannick
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: checkpoint starting: time (insert statement hangs
@ 2020-04-21 19:39 Laurenz Albe <laurenz.albe@cybertec.at>
parent: Yannick Collette <yannickcollette@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Laurenz Albe @ 2020-04-21 19:39 UTC (permalink / raw)
To: Yannick Collette <yannickcollette@gmail.com>; pgsql-admin@lists.postgresql.org
On Tue, 2020-04-21 at 12:10 -0400, Yannick Collette wrote:
> I'm having an issue with Insert statement (through oracle_fdw) that hangs after checkpoint starting is "time" instead of "xlog". see end of log below.
> Migrating data from Oracle (Windows 2008 R2) to Postgresql (Windows 2012 R2). Both systems are virtual machines residing on same host.
> Over 200 migrations have been done without any issues. Trying to understand what's happening here...
>
> 2020-04-20 14:02:36.103 EDT,5e9dbe0e.990,126,,,,00000,LOG: checkpoint complete: wrote 112333 buffers (28.6%); 0 trans
> 2020-04-20 14:07:37.793 EDT,5e9dbe0e.990,131,,,,00000,LOG: checkpoint starting: xlog
> 2020-04-20 14:09:50.222 EDT,5e9dbe0e.990,132,,,,00000,LOG: checkpoint complete: wrote 112903 buffers (28.7%); 0 transaction log file(s) added, 0 removed, 44 recycled; write=132.240 s, sync=0.078 s,
> total=132.428 s; sync files=8, longest=0.034 s, average=0.010 s; distance=720594 kB, estimate=722102 kB
> 2020-04-20 14:10:03.574 EDT,5e9dbe0e.990,133,,,,00000,LOG: checkpoint starting: xlog
> 2020-04-20 14:19:03.160 EDT,5e9dbe0e.990,134,,,,00000,LOG: checkpoint complete: wrote 113066 buffers (28.8%); 0 transaction log file(s) added, 0 removed, 44 recycled; write=539.492 s, sync=0.000 s,
> total=539.586 s; sync files=8, longest=0.004 s, average=0.001 s; distance=721542 kB, estimate=722046 kB
> 2020-04-20 14:20:03.172 EDT,5e9dbe0e.990,135,,,,00000,LOG: checkpoint starting: time
> 2020-04-20 14:29:03.255 EDT,5e9dbe0e.990,136,,,,00000,LOG: checkpoint complete: wrote 97752 buffers (24.9%); 0 transaction log file(s) added, 0 removed, 44 recycled; write=539.911 s, sync=0.000 s,
> total=540.083 s; sync files=7, longest=0.004 s, average=0.001 s; distance=623883 kB, estimate=712230 kB
>
> The transaction still active in pg_stat_activity but not writing on disk since last checkpoint complete. Non errors after last checkpoint. Also no errors in logs on Oracle side.
> Any help or hints would be greatly appreciated.
How does pg_stat_activity look? Is there an entry with "granted = FALSE" in pg_locks?
What is the PostgreSQL query and the Oracle query?
What is the state of the statement in Oracle? Is it running, blocked or waiting for the client?
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: checkpoint starting: time (insert statement hangs
@ 2020-04-22 18:09 Yannick Collette <yannickcollette@gmail.com>
parent: Laurenz Albe <laurenz.albe@cybertec.at>
0 siblings, 0 replies; 3+ messages in thread
From: Yannick Collette @ 2020-04-22 18:09 UTC (permalink / raw)
To: Laurenz Albe <laurenz.albe@cybertec.at>; +Cc: pgsql-admin@lists.postgresql.org
On Tue, 21 Apr 2020 at 15:39, Laurenz Albe <laurenz.albe@cybertec.at> wrote:
> On Tue, 2020-04-21 at 12:10 -0400, Yannick Collette wrote:
> > I'm having an issue with Insert statement (through oracle_fdw) that
> hangs after checkpoint starting is "time" instead of "xlog". see end of
> log below.
> > Migrating data from Oracle (Windows 2008 R2) to Postgresql (Windows 2012
> R2). Both systems are virtual machines residing on same host.
> > Over 200 migrations have been done without any issues. Trying to
> understand what's happening here...
> >
> > 2020-04-20 14:02:36.103 EDT,5e9dbe0e.990,126,,,,00000,LOG: checkpoint
> complete: wrote 112333 buffers (28.6%); 0 trans
> > 2020-04-20 14:07:37.793 EDT,5e9dbe0e.990,131,,,,00000,LOG: checkpoint
> starting: xlog
> > 2020-04-20 14:09:50.222 EDT,5e9dbe0e.990,132,,,,00000,LOG: checkpoint
> complete: wrote 112903 buffers (28.7%); 0 transaction log file(s) added, 0
> removed, 44 recycled; write=132.240 s, sync=0.078 s,
> > total=132.428 s; sync files=8, longest=0.034 s, average=0.010 s;
> distance=720594 kB, estimate=722102 kB
> > 2020-04-20 14:10:03.574 EDT,5e9dbe0e.990,133,,,,00000,LOG: checkpoint
> starting: xlog
> > 2020-04-20 14:19:03.160 EDT,5e9dbe0e.990,134,,,,00000,LOG: checkpoint
> complete: wrote 113066 buffers (28.8%); 0 transaction log file(s) added, 0
> removed, 44 recycled; write=539.492 s, sync=0.000 s,
> > total=539.586 s; sync files=8, longest=0.004 s, average=0.001 s;
> distance=721542 kB, estimate=722046 kB
> > 2020-04-20 14:20:03.172 EDT,5e9dbe0e.990,135,,,,00000,LOG: checkpoint
> starting: time
> > 2020-04-20 14:29:03.255 EDT,5e9dbe0e.990,136,,,,00000,LOG: checkpoint
> complete: wrote 97752 buffers (24.9%); 0 transaction log file(s) added, 0
> removed, 44 recycled; write=539.911 s, sync=0.000 s,
> > total=540.083 s; sync files=7, longest=0.004 s, average=0.001 s;
> distance=623883 kB, estimate=712230 kB
> >
> > The transaction still active in pg_stat_activity but not writing on disk
> since last checkpoint complete. Non errors after last checkpoint. Also no
> errors in logs on Oracle side.
> > Any help or hints would be greatly appreciated.
>
> How does pg_stat_activity look? Is there an entry with "granted = FALSE"
> in pg_locks?
>
> What is the PostgreSQL query and the Oracle query?
>
> What is the state of the statement in Oracle? Is it running, blocked or
> waiting for the client?
>
> Yours,
> Laurenz Albe
> --
> Cybertec | https://www.cybertec-postgresql.com
>
>
Transaction active in pg_stat_activity. Nothing in pg_locks.
Transaction was killed and relaunched. Will check statement in Oracle DB
next time around to see if anything was blocking tx.
Thanks for your help.
Yannick
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2020-04-22 18:09 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-04-21 16:10 checkpoint starting: time (insert statement hangs Yannick Collette <yannickcollette@gmail.com>
2020-04-21 19:39 ` Laurenz Albe <laurenz.albe@cybertec.at>
2020-04-22 18:09 ` Yannick Collette <yannickcollette@gmail.com>
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