Re: [GENERAL] can you please share sample Postgres config file to enable max logging with syslog support?

2014-12-21 Thread John R Pierce
On 12/21/2014 10:17 PM, M Tarkeshwar Rao wrote: ERROR: missing chunk number 0 for toast value 54787 in pg_toast_2619 this error means you have at least one corrupted file. pg_toast data is used to store fields too large for simple tuple storage. a postgres expert could track down which tab

Re: [GENERAL] can you please share sample Postgres config file to enable max logging with syslog support?

2014-12-21 Thread M Tarkeshwar Rao
Hi Steve, Thanks for your useful information. We are getting missing chunk issue. ERROR: missing chunk number 0 for toast value 54787 in pg_toast_2619 we want to set the logging level so that we can capture debug information and the statements which cause this issue. We need any sample postgre

[GENERAL] Re: Is my understanding of bitmap index scans and recheck cond correct?

2014-12-21 Thread AlexK987
I found the answer here: http://www.postgresql.org/docs/current/interactive/using-explain.html Thanks! -- View this message in context: http://postgresql.nabble.com/Is-my-understanding-of-bitmap-index-scans-and-recheck-cond-correct-tp5831616p5831662.html Sent from the PostgreSQL - general ma

Re: [GENERAL] Monitoring query plan cache

2014-12-21 Thread Andomar
psycopg2 sends the SQL you feed it straight to the DB. If you don't feed it a PREPARE statement [1] it'll be an ad-hoc query; the value placeholders will be interpolated prior to statement submission by psycopg2. Thanks, that confirms what I saw during tests. If you're seeing that output then pl

Re: [GENERAL] Monitoring query plan cache

2014-12-21 Thread Tom Lane
Andomar writes: > Below is an example output from log_planner_stats: > LOG: PLANNER STATISTICS > DETAIL: ! system usage stats: > ! 0.000132 elapsed 0.00 user 0.00 system sec > ! [0.181972 user 0.052991 sys total] > ! 0/0 [0/248] filesystem bl

Re: [GENERAL] Monitoring query plan cache

2014-12-21 Thread Jan de Visser
On December 21, 2014 04:08:43 PM Andomar wrote: > It is not always easy to tell the query type (function, prepared or > ad-hoc.) We use Python in mod_wsgi with psycopg2. The code shows ad-hoc > SQL, but who knows what the many layers between Python and the database do. psycopg2 sends the SQL you

Re: [GENERAL] pg_dump

2014-12-21 Thread Adrian Klaver
On 12/20/2014 08:23 PM, Ramesh T wrote: CCing list. yeah i have following 1 and 2 answers..not something else only those two answers.. Well there is CREATE DATABASE TEMPLATE some_db. IMPORTANT look at the caveats at bottom of page here: http://www.postgresql.org/docs/9.3/interactive/sql-crea

Re: [GENERAL] Monitoring query plan cache

2014-12-21 Thread Andomar
Thanks for your reply, I have a follow-up question: c) Can you monitor the query parser as a whole, with stats like parses/sec or cache hits/sec? Possibly log_parser_stats/log_planner_stats/log_statement_stats would help you. They're pretty old-school though; you'd need to write some tool that