Can you please tell us how set this prefetch attribute in following lines.

2019-10-17 Thread M Tarkeshwar Rao
Hi all, How to fetch certain number of tuples from a postgres table. Same I am doing in oracle using following lines by setting prefetch attribute. For oracle // Prepare query if( OCIStmtPrepare( myOciStatement, myOciError, (text *)aSqlStatement, // Get statement type OCIAttrGet(

Re: pg_stat_bgwriter

2019-10-17 Thread dangal
thank you very much justin, i am seeing install the product you recommended me! -- Sent from: https://www.postgresql-archive.org/PostgreSQL-performance-f2050081.html

Re: pg_stat_bgwriter

2019-10-17 Thread dangal
thank you very much jeff I'll see with the team that manages the operating system to see if they can help me with this data that you have given me -- Sent from: https://www.postgresql-archive.org/PostgreSQL-performance-f2050081.html

Re: Reading explain plans- row estimates/actuals on lower nodes vs next level up

2019-10-17 Thread Tomas Vondra
On Thu, Oct 17, 2019 at 03:15:21PM -0600, Michael Lewis wrote: https://explain.depesz.com/s/Caa5 I am looking at this explain analyze output and seeing a nested loop towards the lowest levels with pretty bad estimate vs actual (2.3k vs 99k), but the things that feed that nested loop seem like

Re: pg_stat_bgwriter

2019-10-17 Thread Jeff Janes
On Mon, Oct 14, 2019 at 1:25 PM dangal wrote: > Do you think it should increase bgwriter_lru_maxpages due to the value of > maxwritten_clean? > I find the background writer to be pretty unimportant these days. If the kernel is freely accepting writes without blocking, the backends can probably

Reading explain plans- row estimates/actuals on lower nodes vs next level up

2019-10-17 Thread Michael Lewis
https://explain.depesz.com/s/Caa5 I am looking at this explain analyze output and seeing a nested loop towards the lowest levels with pretty bad estimate vs actual (2.3k vs 99k), but the things that feed that nested loop seem like the estimates are rather close (index scans with 11 estimated vs

Re: Change in CTE treatment in query plans?

2019-10-17 Thread Tom Lane
David Conlin writes: > Does anyone know if there's been a change in the way values for CTEs are > displayed in query plans? Offhand I don't recall any such changes, nor does a cursory look through explain.c find anything promising. If you're concerned with a multiply-referenced CTE, one