pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedOrphan Temp Table After PITR
4+ messages / 2 participants
[nested] [flat]
* Orphan Temp Table After PITR
@ 2011-04-19 08:40 Selva manickaraja <mavles78@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Selva manickaraja @ 2011-04-19 08:40 UTC (permalink / raw)
To: pgsql-admin
Dear All,
We encountered this for the 3rd time after completing a PITR.
The database starts up as usual and we could carry out the read and write
transactions. After a while the following errors start appearing in the log.
So we tried running vacuumdb with options All,Freeze,Analyze to see if that
can clear the logs. That is why we get the entries "checkpoints are
occurring too frequently (11 seconds apart)" and so on. However during and
after the vacuumdb is completed the "orphan temp table" entry keeps on
printing in the log. Anyone has any idea why this is happening?
2011-04-19 12:12:31 MYT LOG: connection received: host=[local]
2011-04-19 12:12:31 MYT LOG: connection authorized: user=postgres
database=np
2011-04-19 12:12:46 MYT LOG: checkpoints are occurring too frequently (11
seconds apart)
2011-04-19 12:12:46 MYT HINT: Consider increasing the configuration
parameter "checkpoint_segments".
2011-04-19 12:12:48 MYT LOG: checkpoints are occurring too frequently (2
seconds apart)
2011-04-19 12:12:48 MYT HINT: Consider increasing the configuration
parameter "checkpoint_segments".
2011-04-19 12:12:49 MYT LOG: checkpoints are occurring too frequently (1
second apart)
2011-04-19 12:12:49 MYT HINT: Consider increasing the configuration
parameter "checkpoint_segments".
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_108"."session_id" in database "np"
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_19"."session_id" in database "np"
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_35"."session_id" in database "np"
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_18"."session_id" in database "np"
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_21"."session_id" in database "np"
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_6"."session_id" in database "np"
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_42"."session_id" in database "np"
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_12"."session_id" in database "np"
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_30"."session_id" in database "np"
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_17"."session_id" in database "np"
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_8"."session_id" in database "np"
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_44"."session_id" in database "np"
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_46"."session_id" in database "np"
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_25"."session_id" in database "np"
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_5"."session_id" in database "np"
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_22"."session_id" in database "np"
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_120"."session_id" in database "np"
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_36"."session_id" in database "np"
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_47"."session_id" in database "np"
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_13"."session_id" in database "np"
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_14"."session_id" in database "np"
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_15"."tmp_swsv" in database "np"
2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
"pg_temp_69"."session_id" in database "np"
2011-04-19 12:13:05 MYT LOG: checkpoints are occurring too frequently (16
seconds apart)
2011-04-19 12:13:05 MYT HINT: Consider increasing the configuration
parameter "checkpoint_segments".
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Orphan Temp Table After PITR
@ 2011-04-19 14:00 Kevin Grittner <Kevin.Grittner@wicourts.gov>
parent: Selva manickaraja <mavles78@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Kevin Grittner @ 2011-04-19 14:00 UTC (permalink / raw)
To: Selva manickaraja <mavles78@gmail.com>; pgsql-admin
Selva manickaraja <mavles78@gmail.com> wrote:
> We encountered this for the 3rd time after completing a PITR.
> 2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
> "pg_temp_108"."session_id" in database "np"
> [for many different temp tables]
> Anyone has any idea why this is happening?
There were a lot of temp tables open on the master when you made the
base backup? It would seem autovacuum is cleaning them up when it
comes across them.
Do you have some reason to believe that these "LOC" level entries
represent some problem?
-Kevin
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Orphan Temp Table After PITR
@ 2011-04-20 04:20 Selva manickaraja <mavles78@gmail.com>
parent: Kevin Grittner <Kevin.Grittner@wicourts.gov>
0 siblings, 0 replies; 4+ messages in thread
From: Selva manickaraja @ 2011-04-20 04:20 UTC (permalink / raw)
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>; +Cc: pgsql-admin
The problem is, the DB keeps on printing these entries the whole day and
bloats the log file. It's 11AM now and already 14,700 entries of this
message in the log and it keeps on increasing. What needs to be done to
counter this unnecessary logging? This machine will be the production
secondary DB and nominated as the primary to fail-over. So we need to ensure
it is clear of any issue.
Thank you.
Regards,
Selvam
On Tue, Apr 19, 2011 at 10:00 PM, Kevin Grittner <
Kevin.Grittner@wicourts.gov> wrote:
> Selva manickaraja <mavles78@gmail.com> wrote:
>
> > We encountered this for the 3rd time after completing a PITR.
>
> > 2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp table
> > "pg_temp_108"."session_id" in database "np"
> > [for many different temp tables]
>
> > Anyone has any idea why this is happening?
>
> There were a lot of temp tables open on the master when you made the
> base backup? It would seem autovacuum is cleaning them up when it
> comes across them.
>
> Do you have some reason to believe that these "LOC" level entries
> represent some problem?
>
> -Kevin
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Orphan Temp Table After PITR
@ 2011-04-20 14:49 Kevin Grittner <Kevin.Grittner@wicourts.gov>
0 siblings, 0 replies; 4+ messages in thread
From: Kevin Grittner @ 2011-04-20 14:49 UTC (permalink / raw)
To: mavles78@gmail.com; +Cc: pgsql-admin
[Rearranging to eliminate top-posting. List style in embedded
responses.]
Selva manickaraja < mavles78@gmail.com > wrote:
> Kevin Grittner <Kevin.Grittner@wicourts.gov> wrote:
>> Selva manickaraja <mavles78@gmail.com> wrote:
>>
>>> We encountered this for the 3rd time after completing a PITR.
>>
>>> 2011-04-19 12:12:59 MYT LOG: autovacuum: found orphan temp
>>> table "pg_temp_108"."session_id" in database "np"
>>> [for many different temp tables]
>>
>>> Anyone has any idea why this is happening?
>>
>> There were a lot of temp tables open on the master when you made
>> the base backup? It would seem autovacuum is cleaning them up
>> when it comes across them.
>>
>> Do you have some reason to believe that these "LOC" level entries
>> represent some problem?
> The problem is, the DB keeps on printing these entries the whole
> day and bloats the log file. It's 11AM now and already 14,700
> entries of this message in the log and it keeps on increasing.
I'm assuming the 1 MB or so of disk space used by those lines isn't a
problem. If they're getting in the way of spotting log entries you
need to notice, you might consider grep -v as a workaround, but the
big question is why you're getting so many. To that end:
(1) In previous posts you didn't show any duplicates. Are the
14,700 entries for 14,700 different files, or are files showing up
more than once?
(2) If you look under your production server's data directory, how
many such files can you find?
(3) If you still have a copy of the base backup, how many such
files were in it?
(4) Check the replica to see how many such files are still there.
Get a list. Do any log entries show up after that for files which
weren't there?
(5) Could you show us your configuration? The easiest way is to
run the query on this page:
http://wiki.postgresql.org/wiki/Server_Configuration
> What needs to be done to counter this unnecessary logging?
I'm not sure I would want my server to delete such files without
mentioning it. It is just LOG level, not even WARNING. Rather than
considering the logging to be the problem, I'd first be concerned
that it might be providing a valuable clue to something that's a
problem with current operations on the master.
-Kevin
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2011-04-20 14:49 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-04-19 08:40 Orphan Temp Table After PITR Selva manickaraja <mavles78@gmail.com>
2011-04-19 14:00 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
2011-04-20 04:20 ` Selva manickaraja <mavles78@gmail.com>
2011-04-20 14:49 Re: Orphan Temp Table After PITR Kevin Grittner <Kevin.Grittner@wicourts.gov>
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