Re: [ADMIN] Getting

2013-01-24 Thread Greg Williamson
if you doing an update / insert / delete you may want to wrap it in an explicit transaction and then roll it back. HTH, Greg Williamson -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin

Re: [ADMIN] autovacuum

2012-12-30 Thread Greg Williamson
d might help with whatever problem you think autovac is causing. HTH, Greg Williamson -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin

Re: [ADMIN] Upgrade from 9.1.6 to 9,1.7 seems to have caused a major slowdown

2012-12-20 Thread Greg Williamson
Rafael -- <...> >> Has anyone else seen anything like this ? >> > > Hello > > The release notes for 9.2.2 say this: > > "... However, you may need to perform REINDEX operations to correct > problems in concurrently-built indexes, as described in the first > changelog item below." > > Bu

[ADMIN] Upgrade from 9.1.6 to 9,1.7 seems to have caused a major slowdown

2012-12-20 Thread Greg Williamson
config  settings to see if anything changed (shouldn't have but ...). Has anyone else seen anything like this ? I  suspect some site error had led to us scoring an own-goal but I thought I'd ask and see if anyone else has seen this. Thanks, Greg Williamson -- Sent via pgsql-adm

Re: [ADMIN] allow a user to see current_query in pg_stat_activity in 8.4

2012-12-13 Thread Greg Williamson
Tom -- >Greg Williamson writes: >> We want to create a role used by a monitor to check for " in >> Transaction" with the most restrictive permissions we can on a 8.4.13 >> instance. > >> The user has been granted connect privilege to the database

[ADMIN] allow a user to see current_query in pg_stat_activity in 8.4

2012-12-13 Thread Greg Williamson
e database and some limited permissions to user tabhles that need to be monitored. But pg_stat_activity shows only "" I've trolled the archives and postgres docs with no success. Could some kind soul point me in the right direction ? Thanks! Greg Williamson

Re: [ADMIN] Cronjob to autobackup database

2012-12-05 Thread Greg Williamson
ld not know about. If it does not run from the command line, that will probably give you a clue. HTH, Greg Williamson -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin

Re: [ADMIN] Resolving Index Bloat

2012-11-19 Thread Greg Williamson
s of failures, never repeated. The hand rolled version is a bit safer and a little less intrusive. HTH, Greg Williamson -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin

Re: [ADMIN] autovacuum with lots of open file references to deleted files

2012-11-04 Thread Greg Williamson
Tom -- <...> >> A cron job dropdb one of the databases and createdb it and then pg_restore. > Roughly 80GB dump. > > So far, my guess is that this is fixed by commits a1f064fc2 + d7598aeea. > >> Out production PostgreSQL running a 9.1 variant does not have this problem. > It does not have

Re: [ADMIN] Database size stays constant but disk space keeps shrinking -- postgres 9.1

2012-10-17 Thread Greg Williamson
fantastic ! thanks. greg > > From: Jaime Casanova >To: Greg Williamson >Cc: "pgsql-admin@postgresql.org" >Sent: Wednesday, October 17, 2012 10:05 AM >Subject: Re: [ADMIN] Database size stays constant but disk space keeps >s

Re: [ADMIN] Database size stays constant but disk space keeps shrinking -- postgres 9.1

2012-10-03 Thread Greg Williamson
Gabriele -- - Original Message - > From: Gabriele Bartolini > To: Greg Williamson > Cc: pgsql-admin@postgresql.org > Sent: Wednesday, October 3, 2012 4:41 AM > Subject: Re: [ADMIN] Database size stays constant but disk space keeps > shrinking -- postgres 9.1 > &

Re: [ADMIN] Database size stays constant but disk space keeps shrinking -- postgres 9.1

2012-10-02 Thread Greg Williamson
I've done some more testing and the problem seems to be repmgr itself. A few details below... - Original Message - > From: Greg Williamson > To: Tom Lane > Cc: "pgsql-admin@postgresql.org" > Sent: Thursday, September 27, 2012 7:23 PM > Subject: R

Re: [ADMIN] Database size stays constant but disk space keeps shrinking -- postgres 9.1

2012-10-01 Thread Greg Williamson
Dinesh -- - Original Message - > From: Dinesh Bhandary > To: Greg Williamson > Cc: "pgsql-admin@postgresql.org" > Sent: Thursday, September 27, 2012 7:19 PM > Subject: Re: [ADMIN] Database size stays constant but disk space keeps > shrinking -- postgr

Re: [ADMIN] Database size stays constant but disk space keeps shrinking -- postgres 9.1

2012-09-28 Thread Greg Williamson
Steve -- - Original Message - > From: Steve Crawford > To: Greg Williamson > Cc: "pgsql-admin@postgresql.org" > Sent: Friday, September 28, 2012 8:59 AM > Subject: Re: [ADMIN] Database size stays constant but disk space keeps > shrinking -- postgres 9.1

Re: [ADMIN] Database size stays constant but disk space keeps shrinking -- postgres 9.1

2012-09-27 Thread Greg Williamson
Tom -- - Original Message - > From: Tom Lane > To: Greg Williamson > Cc: "pgsql-admin@postgresql.org" > Sent: Thursday, September 27, 2012 7:55 PM > Subject: Re: [ADMIN] Database size stays constant but disk space keeps > shrinking -- postgres 9.1

Re: [ADMIN] Database size stays constant but disk space keeps shrinking -- postgres 9.1

2012-09-27 Thread Greg Williamson
Tom -- - Original Message - > From: Tom Lane > To: Greg Williamson > Cc: "pgsql-admin@postgresql.org" > Sent: Thursday, September 27, 2012 7:14 PM > Subject: Re: [ADMIN] Database size stays constant but disk space keeps > shrinking -- postgres 9.1

Re: [ADMIN] Database size stays constant but disk space keeps shrinking -- postgres 9.1

2012-09-27 Thread Greg Williamson
Steve (and others who replied): - Original Message - > From: Steve Crawford > To: Greg Williamson > Cc: "pgsql-admin@postgresql.org" > Sent: Thursday, September 27, 2012 3:48 PM > Subject: Re: [ADMIN] Database size stays constant but disk space keeps &g

[ADMIN] Database size stays constant but disk space keeps shrinking -- postgres 9.1

2012-09-27 Thread Greg Williamson
Dear list, I have a postgres database, 9.1.3, which shows a fairly constant amount of space used by postgres, but total disk space kees shrinking. If I restart postgres the space on my file system returns. This cluster is replicated to another; that custer does not show this problem. There are

[ADMIN] file descriptors still open to deleted files

2012-09-24 Thread Greg Williamson
information if you give me some pointers as to what to look for. Thanks! Greg Williamson postgres(at)db11:5432=# select version();                                                    version

[ADMIN] creating trigger in 8.3 -- very slow

2012-08-22 Thread Greg Williamson
I've got a fairly large table (186 million rows) that is moderately busy ( a few inserts per second at most) that I am trying to create a trigger on --  it is just hanging. Can this be done in 8.3 ? Will it eventually complete ?  Thanks for any advice, information, etc.! Greg Williamson

Re: [ADMIN] Question about ALTER TABLE DROP CONSTRAINT on 9.1 -- psql crashes

2012-08-09 Thread Greg Williamson
Tom, et. al., > > From: Greg Williamson >To: Tom Lane >Cc: "pgsql-admin@postgresql.org" >Sent: Thursday, August 9, 2012 5:35 PM >Subject: Re: [ADMIN] Question about ALTER TABLE DROP CONSTRAINT on 9.1

Re: [ADMIN] Question about ALTER TABLE DROP CONSTRAINT on 9.1 -- psql crashes

2012-08-09 Thread Greg Williamson
Tom -- > ><...>>  >> WTF?  That should certainly not happen.  Have you perhaps got a script >> that runs around sending SIGTERM to backends that it thinks are blocking >> something?  Does anything show up in the postmaster log when this >> happens? > >No, we have

[ADMIN] Question about ALTER TABLE DROP CONSTRAINT on 9.1 -- psql crashes

2012-08-09 Thread Greg Williamson
64-bit (1 row)   This table is only updated a few times a minute (mostly inserts and deletes, some updates), others get hit a lot more (many times a second). pgsql is the same version and I am on the same server. Is this known / documented ? Any suggestions (other than not to do this ; -- ) Thanks, Greg Williamson

Re: [ADMIN] autovac hitting too many tables at once

2012-06-23 Thread Greg Williamson
A follow up -- <...> >>>    a) quickly relieve the immediate pain >> >> Set autovacuum_cost_limit to a smaller value.  (Change the >> postgresql.conf file and do a reload.)  I would start by cutting the >> current value in half. >> > >Thanks -- would not have known how to start. But for now, in

Re: [ADMIN] autovac hitting too many tables at once

2012-06-22 Thread Greg Williamson
Kevin -- <...> >>   a) quickly relieve the immediate pain > > Set autovacuum_cost_limit to a smaller value.  (Change the > postgresql.conf file and do a reload.)  I would start by cutting the > current value in half. > Thanks -- would not have known how to start. But for now, in observance of

[ADMIN] autovac hitting too many tables at once

2012-06-22 Thread Greg Williamson
uture (other than going to manual vacuuming on a schedule). Thanks, Greg Williamson -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin

Re: [ADMIN] Trouble w/ COPY command

2012-04-14 Thread Greg Williamson
type numeric in the table, and copy the values from the text variant to the numeric ones with the proper cast one at a time; if it blows up you go back to resolving issues. Then copy the table using the numeric columns to the desired destination. Hopefully others might have better ide

Re: [ADMIN] postgres 9.0 date aberration in logs

2012-02-07 Thread Greg Williamson
Matheus -- > >To me seems that it just appended the data to your log. To avoid this set the >log_truncate_on_rotation to on, but notice that it will replace the old logs. > > Thanks for the suggestion, but we seem to be using this already: -bash-3.2$ grep  log_truncate_on_rotation  postgresql.

[ADMIN] postgres 9.0 date aberration in logs

2012-02-07 Thread Greg Williamson
sf1ddb001 puppet-agent[28309]: Finished catalog run in 10.16 seconds Feb  7 01:27:43 sf1ddb001 puppet-agent[28309]: Finished catalog run in 10.86 seconds Feb  7 01:57:59 sf1ddb001 puppet-agent[28309]: Finished catalog run in 10.48 seconds <...> Has anyone ever seen anything like this ?  T

[ADMIN] 9.1 QUestion -- directory left over after drop database

2012-02-06 Thread Greg Williamson
0 Feb  6 14:49 1577013889 -rw--- 1 postgres postgres 0 Feb  6 14:49 1577011574 -rw--- 1 postgres postgres 0 Feb  6 14:49 1577011572 -rw--- 1 postgres postgres 0 Feb  6 14:49 1577011568 Are these safe to delete these files ? Is it safe to delete the directory itself ? Th

Re: [ADMIN] postgres 9.0.4, pg_restore and indexes

2011-10-24 Thread Greg Williamson
> Did you actually try this ? This does not include any references to indexes, constraints or sequences, all of which it might be useful to recreate. What I am I missing ? Or is pg_restore just not capable of restoring the full definition of a table ?  TIA, Greg WIlliamson -- S

[ADMIN] postgres 9.0.4, pg_restore and indexes

2011-10-24 Thread Greg Williamson
p without time zone |  Indexes:     "index_hosts_on_name" btree (name)     "index_hosts_on_source_file_id" btree (source_file_id) Could someone hit with me with a clue stick ? I've tried endless combinations of ways to restore the whole table with all indexes and hav

Re: [ADMIN] tsvector limitations

2011-06-14 Thread Greg Williamson
e like from all periods; novels and the like that are no longer under copyright, so lots of long classics. <http://www.archive.org/stream/ataleoftwocities00098gut/old/2city12p_djvu.txt> for example ... 765K HTH, Greg Williamson -- Sent via pgsql-admin mailing list (pgsql-admin@postgr

Re: [ADMIN] pg_* Tables

2010-12-05 Thread Greg Williamson
hat are the number of rows in those tables ? It is possible that the planner is doing a sequential scan because the tables are small and that's faster than doing indexed reads. Greg Williamson

Re: [ADMIN] RAISE NOTICE

2007-10-03 Thread Greg Williamson
Don't 'kill -9' the postmaster Ray, You don't say what form of quoting you are using, but maybe you could try doubling up those quotes ? raise notice ''A is %'',5; HTH, Greg Williamson Senior DBA GlobeXplorer LLC, a DigitalGlobe company Confidentiality Not