Re: Disk filling, CPU filling, renegade inserts and deletes?

From: Tom Lane
Subject: Re: Disk filling, CPU filling, renegade inserts and deletes?
Date: ,
Msg-id: 14610.1114285856@sss.pgh.pa.us
(view: Whole thread, Raw)
In response to: Re: Disk filling, CPU filling, renegade inserts and deletes?  (Richard Plotkin)
Responses: Re: Disk filling, CPU filling, renegade inserts and deletes?  (Richard Plotkin)
List: pgsql-performance

Tree view

Disk filling, CPU filling, renegade inserts and deletes?  (Richard Plotkin, )
 Re: Disk filling, CPU filling, renegade inserts and  (Rod Taylor, )
  Re: Disk filling, CPU filling, renegade inserts and  (Richard Plotkin, )
  Re: Disk filling, CPU filling, renegade inserts and deletes?  (Richard Plotkin, )
 Re: Disk filling, CPU filling, renegade inserts and deletes?  (Tom Lane, )
  Re: Disk filling, CPU filling, renegade inserts and deletes?  (Richard Plotkin, )
   Re: Disk filling, CPU filling, renegade inserts and deletes?  (Richard Plotkin, )
    Re: Disk filling, CPU filling, renegade inserts and deletes?  (Alvaro Herrera, )
     Re: Disk filling, CPU filling, renegade inserts and deletes?  (Richard Plotkin, )
  Re: Disk filling, CPU filling, renegade inserts and deletes?  (Richard Plotkin, )
   Re: Disk filling, CPU filling, renegade inserts and deletes?  (Richard Plotkin, )
    Re: Disk filling, CPU filling, renegade inserts and deletes?  (Richard Plotkin, )
    Re: Disk filling, CPU filling, renegade inserts and deletes?  (Tom Lane, )
     Re: Disk filling, CPU filling, renegade inserts and deletes?  (Richard Plotkin, )
      Re: Disk filling, CPU filling, renegade inserts and deletes?  (Tom Lane, )
       Re: Disk filling, CPU filling, renegade inserts and deletes?  (Richard Plotkin, )
        Re: Disk filling, CPU filling, renegade inserts and deletes?  (Tom Lane, )
         Re: Disk filling, CPU filling, renegade inserts and deletes?  (Richard Plotkin, )

Richard Plotkin <> writes:
> Thanks for your responses this morning.  I did the select relname, and
> it returned 0 rows.  I do have one function that creates a temp table
> and fills it within the same transaction.  I'm pasting it below.
> Perhaps the "ON COMMIT DROP" is causing problems, and I need to drop
> the table at the end of the function instead of using ON COMMIT DROP?

Well, I think we can conclude that the function is pushing way more
data into the temp table than you expect.  I am wondering if that loop
in the middle of the function is turning into an infinite loop --- could
it be finding some sort of cycle in your page data?  You might want to
add some RAISE NOTICE commands to the loop so you can track what it's
doing.

            regards, tom lane


pgsql-performance by date:

From: "Andrew Dunstan"
Date:
Subject: Re: [HACKERS] Bad n_distinct estimation; hacks suggested?
From: Thomas F.O'Connell
Date:
Subject: Re: pgbench Comparison of 7.4.7 to 8.0.2