Re: [ADMIN] Bloat and Slow Vacuum Time on Toast

2011-07-19 Thread Ken Caruso
On Tue, Jul 19, 2011 at 2:26 PM, Tom Lane wrote: > Ken Caruso writes: > > I am trying to trouble shoot a couple of issue related to vacuum and db > > size. I currently have a postgres DB that is around 390GB on disk (du -hs > in > > $PG_DATA/base). If I look at the total

Re: [ADMIN] Bloat and Slow Vacuum Time on Toast

2011-07-19 Thread Ken Caruso
On Tue, Jul 19, 2011 at 1:50 PM, Kevin Grittner wrote: > Ken Caruso wrote: > > > > SELECT SUM(pg_relation_size(pg_class.oid)) > > FROM pg_class ; > > Perhaps you want pg_total_relation_size()? > > -Kevin > The number returned when using pg_total_relation s

[ADMIN] Bloat and Slow Vacuum Time on Toast

2011-07-19 Thread Ken Caruso
volumes on the MSA but they are not actively used for anything. Thanks -Ken

Re: [ADMIN] 9.0.4 Data corruption issue

2011-07-19 Thread Ken Caruso
On Sun, Jul 17, 2011 at 3:04 AM, Cédric Villemain < [email protected]> wrote: > 2011/7/17 Ken Caruso : > > > > > > On Sat, Jul 16, 2011 at 2:30 PM, Tom Lane wrote: > >> > >> Ken Caruso writes: > >> > Sorry, the actual

Re: [ADMIN] 9.0.4 Data corruption issue

2011-07-17 Thread Ken Caruso
On Sun, Jul 17, 2011 at 3:04 AM, Cédric Villemain < [email protected]> wrote: > 2011/7/17 Ken Caruso : > > > > > > On Sat, Jul 16, 2011 at 2:30 PM, Tom Lane wrote: > >> > >> Ken Caruso writes: > >> > Sorry, the actual

Re: [ADMIN] 9.0.4 Data corruption issue

2011-07-17 Thread Ken Caruso
On Sat, Jul 16, 2011 at 2:30 PM, Tom Lane wrote: > Ken Caruso writes: > > Sorry, the actual error reported by CLUSTER is: > > > gpup=> cluster verbose tablename; > > INFO: clustering "dbname.tablename" > > WARNING: could not write block 12125253 of b

Re: [ADMIN] 9.0.4 Data corruption issue

2011-07-16 Thread Ken Caruso
On Sat, Jul 16, 2011 at 8:59 AM, Tom Lane wrote: > Ken Caruso writes: > > Had a DB that had bloated due to lots of updates and insuffcient auto > vacuum > > settings. Attempted the following in the following order: > > > VACUUM VERBOSE full tablename; > > CLUS

Re: [ADMIN] 9.0.4 Data corruption issue

2011-07-16 Thread Ken Caruso
Forgot to mention we have streaming replication partner as well that around the same time stop recovering because a WAL segment could not be found on the primary. On Sat, Jul 16, 2011 at 4:05 AM, Ken Caruso wrote: > Hello, > > Had a DB that had bloated due to lots of updates and in

[ADMIN] 9.0.4 Data corruption issue

2011-07-16 Thread Ken Caruso
any to recover from this. Also how do I avoid this in the future? -Ken

[ADMIN] pg_lesslog w/Postgres 9.0.X

2011-07-05 Thread Ken Caruso
better results. I have been looking for some reference to indicate that the recent version pg_lesslog is compatible with 9.0.4 but not have found anything conclusive. So I was wondering if anyone on the list is running pg_lesslog on 9.0.X in a production environment. Any gotchas? Thanks -Ken

Re: [ADMIN] DROP ROLE: how to detect active sessions?

2010-10-21 Thread Ken Lalonde
This is a web app, so the username is unknown until the user actually logs in. It would be ideal if pg_stat_activity contained the current role. Until then, I'll go with your second recommendation. Thanks for such a quick and useful reply. Ken On 2010-10-21, at 2:18 PM, Tom Lane wrote:

[ADMIN] DROP ROLE: how to detect active sessions?

2010-10-21 Thread Ken Lalonde
hat session, "select current_user" fails with "invalid role OID: ". Is there any way to determine if a given role has any active sessions? Thanks a bunch, Ken Lalonde Gap Adventures, Toronto -- Sent via pgsql-admin mailing list ([email protected]) To make chan

[ADMIN] Seek info on 7.4.23 server/8.1.1 psql compatibility issues.

2009-10-03 Thread Ken Banyas
connection was made. Network connectivity otherwise between the two computers is normal. Is anyone aware of known compatibility issues? If so, can you point me to documentation, troubleshooting tips, etc? Thanks. Ken Banyas -- Sent via pgsql-admin mailing list ([email protected]) To

[ADMIN] How to mask password when changing it using ALTER USER command in psql.

2009-09-10 Thread Ken Banyas
? Thanks. Ken Banyas -- Sent via pgsql-admin mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin

[ADMIN] database corruption help needed

2009-02-22 Thread Ken . Colson
ow what else to do from here. Any suggestions? I am running 8.2.5 on 64bit Linux. Thanks in advance, Ken

[ADMIN] unable to restore

2008-08-26 Thread Ken . Colson
except for data. Any help appreciated, thanks, Ken -- Sent via pgsql-admin mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin

[ADMIN] Recovering records after running out of disk space

2008-04-09 Thread Ken Ebling
y must still be there somewhere if it's relpages is so big. Thanks in advance, Ken -- Sent via pgsql-admin mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin

[ADMIN] unsubscribe

2006-07-31 Thread Ken Hill
Unsubscribe ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [ADMIN] How to find data directory

2005-12-18 Thread Ken Hill
n Sun, 18 Dec 2005, Ken Hill wrote: > > > I have created two database named 'testdb' and 'csalgorithm'. How do I > > find these databases? I was expecting the databases to be subdirectories > > under the database directory (e.g. /var/lib/postresql/7.

Re: [ADMIN] How to find data directory

2005-12-18 Thread Ken Hill
That works nice. It shows my data directory in '/var/lib/postgresql/7.4/main'. When I do an ls command, I get: $ sudo ls /var/lib/postgresql/7.4/main basepg_clog pg_ident.conf pg_xlog postmaster.opts root.crt global pg_hba.conf PG_VERSION postgresql.conf postmaster.pid I

Re: [ADMIN] psql

2005-12-18 Thread Ken Hill
On Sat, 2005-12-17 at 06:39 -0800, olive Mckenzie wrote: > Hello > > Problem > > when I type psql while logged in as postgres user and > in /usr/local/pgsql/bin > > > I get message > > > could not connect to server no such file or directory. > is server running locally and accepting co

Re: [ADMIN] How to find data directory

2005-12-16 Thread Ken Hill
I'm using 7.4.8 so that does not work. Any other suggestions? On Fri, 2005-12-16 at 15:50 -0800, Jeff Frost wrote: > Run the following query: > > show data_directory; > > > On Fri, 16 Dec 2005, Ken Hill wrote: > > > database, but I can find the directory

[ADMIN] How to find data directory

2005-12-16 Thread Ken Hill
I installed postgresql using the Synaptic Package Manager on my Ubuntu distro. I created the 'postgres' user account. I can create users and database, but I can find the directory where the database are kept. How do I find where the postgresql database directory is from a command line? --

[ADMIN] Table Partitioning

2005-03-04 Thread Ken Reid
I am new to postgres and was wondering if table partitioning is supported in Postgres. And if so what version and where can I find documentation on it. - Thank You - Ken Reid ---(end of broadcast)--- TIP 6: Have you searched our list archives

Re: [ADMIN] newbie qs; fixing and checking databases

2002-10-16 Thread ken
Did somebody just yell "fire" in a crowded theatre? Ken -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bruce Momjian Sent: Wednesday, October 16, 2002 12:54 PM To: Rusty Wright Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [ADMIN]

[ADMIN] Insert failures

2001-02-02 Thread Ken Kinder
me a note. Thanks in advance. -- Ken Kinder www.kenkinder.com

Re: [ADMIN] Data now showing up

2001-01-28 Thread Ken Kinder
ged Postgres, I installed it myself. On Sun, Jan 28, 2001 at 08:14:12PM -0500, Tom Lane wrote: > Ken Kinder <[EMAIL PROTECTED]> writes: > > After a few months of running, I have a database that consistantly stops > > taking inserts. It isn't a high-use database, doesn't

[ADMIN] Data now showing up

2001-01-28 Thread Ken Kinder
insert in psql, it acts like it did it, you select from the data, and it's simply not there. If I dump and rebuild the database, the problem is solved. Any suggestions? psql (PostgreSQL) 7.0.0 -- Ken Kinder www.kenkinder.com

Re: [ADMIN] Work with datas > 8K

2000-08-22 Thread Ken Kinder
Use a large object. See the Postgres docs. -- Ken Kinder www.kenkinder.com On Tue, 22 Aug 2000, [iso-8859-9] Mustafa Timur Gökçe wrote: > Hi! > > I'm trying to write a program in PHP/PostgreSQL. > > In my program when i insert a data bigger than 8K , i have an error like

[ADMIN] schema diagram

2000-08-15 Thread Ken Kinder
Can anyone suggest how to get a big schema diagram for a Postgres database? We want one for the wall. -- Ken Kinder www.kenkinder.com

Re: [ADMIN] select based on date range

2000-08-14 Thread Ken Kinder
select * from foo where col > datetime 'date literal' and col < datetime 'date literal' datetime 'value' casts the string to a datetime variable. You can also use timespans. -- Ken Kinder www.kenkinder.com On Mon, 14 Aug 2000, Erik B. Flitman wrote: >

Re: [ADMIN] How do I port data into Postgres from other RDBMSs

2000-07-31 Thread Ken Kinder
Data Junction, and it may connect with PostgreSQL if you have PG ODBC running. I'm a little partial to the Python scripting. :) -- Ken Kinder www.kenkinder.com On Sat, 29 Jul 2000, kumar iyer wrote: > My name is Sreekumar.G.Iyer and I'm working as a software engineer >

Re: [ADMIN] Report generator

2000-07-25 Thread Ken Kinder
I like pgaccess's reporter. -- Ken Kinder www.kenkinder.com On Tue, 25 Jul 2000, miguel valero wrote: > > Any good report generator for PostgreSQL out there ? > > I need something that is BSD-licensed, public domain, or LGPL

Re: [ADMIN] incoming connections

2000-07-12 Thread Ken Kinder
One way I think of is just grepping for postgres in your ps command. I think each connection gets its on thread. On Linux, ps will show threads. -- Ken Kinder www.kenkinder.com On Wed, 12 Jul 2000, Mario Simeone wrote: > how can I count the number of current connections to a postgres DB ? >

[ADMIN] 8K limit

1999-02-08 Thread Ken Mort
I was reading in the hackers list threads regarding workarounds to the 8k block limit. I have a number of polygon objects that are bigger than 8k. Has a workaround been done? The hackers thread seemed to indicate that it would be in 6.3.2 but was delayed. Is there a fix in 6.4.x? Regards, Kenne

[ADMIN] Compile 6.4.2 under Redhat5.1

1999-01-25 Thread Ken Mort
I ran configure using the 'with-x' option in configure and got an warning:'X11 library '-lX11' could not be found so TK support will be disabled',where or what rpm is the -lX11 library under redhat 5.1? I'm not sure I even need 'with-x'. Is there a more extensive description of all the confi

No Subject

1998-11-23 Thread Ken Wills
assigned, ca_date) VALUES ('$service_id', '$org_name', '$phone_number', '$status', '$product', '$problem', '$resolution', '$contact', '$assigned', '$time_now')}; Thanks in advance. Ken Wills GFC Call Center Email: [EMAIL PROTECTED] Phone: 1-888-4325556 Fax: 1-608-432