Re: [ADMIN] rows in explain

2005-07-29 Thread Lee Wu
Michael, Thanks a lot. http://developer.postgresql.org/docs/postgres/planner-stats-details.html is very useful for me. However, if I can be provided some specific functions to get rows count, That will be greatly appreciated. Basically, I want to query data dictionary to get the estimated number

Re: [ADMIN] rows in explain

2005-07-29 Thread Michael Fuhr
On Fri, Jul 29, 2005 at 11:54:18AM -0600, Lee Wu wrote: > explain select count(*) from pg_class where relname='pg_class'; > QUERY PLAN > -- > Aggregate (cost=4.55..4.55 rows=1 width=0) >-> Seq Scan on pg_cl

[ADMIN] rows in explain

2005-07-29 Thread Lee Wu
Hi all,   I want to find out how PG gets rows when it explains a query. For example, when I issue:   explain select count(*) from pg_class where relname='pg_class';   QUERY PLAN --  Aggregate  (cost=

[ADMIN] problem on ssl client authentication

2005-07-29 Thread Luca Stancapiano
hello.I use postgresql 8.0 . I've created the server.key and server.crt in this manner: openssl req -new -nodes -keyout server.key -out server.csr openssl req -x509 -key /home/data/server.key -in /home/data/server.csr -out server.crt and I put theese in my data home. I launch postgres in t

Re: [ADMIN] Indexes on RAM disk = insanity?

2005-07-29 Thread Steve Lane
We're going to build a new server with a bit more RAM -- 8 gigs. I know memory is somehow the bottleneck, but I don't think it's because I have too little. Performance monitors show a lot of swap activity during heavy query load testing, but available RAM is never maxed out, or even close. SOMETHI

Re: [ADMIN] Indexes on RAM disk = insanity?

2005-07-29 Thread Chris Travers
Steve Lane wrote: All: We have a postgres 7.4 server where we're trying to achieve some speedups. Right now, at least superficially, RAM appears to be the bottleneck -- lots of swaps in and out. There is another consultant beside myself in the mix and he asked this question: can we put the dat

Re: [ADMIN] Indexes on RAM disk = insanity?

2005-07-29 Thread Tom Lane
Steve Lane <[EMAIL PROTECTED]> writes: > Or will postgres 8 rebuild an index if it doesn't find it where it expects? No, but there's always REINDEX. > I recognize, or think I do, that PG 8 tablespaces would be required to > accomplish this. It'd certainly make it a lot easier. Also, it's probab

Re: [ADMIN] Indexes on RAM disk = insanity?

2005-07-29 Thread Richard_D_Levine
> RAM appears to be the bottleneck -- lots > of swaps in and out. > can we put the database indexes on a RAM disk? Can you increase the RAM in the machine? I guess I should assume you're maxed out. Rick [EMAIL PROTECTED] wrote on 07/29/2005 10:32:28 AM: > All: > > We have a postgres 7.4 server

Re: [ADMIN] postgres optimization

2005-07-29 Thread Scott Marlowe
On Fri, 2005-07-29 at 08:24, Kailash Vyas wrote: > hi > > i am optmizing postgres database and need some help on it. > I currently have a server with 2 Gb RAM. > > I have setup the /proc/sys/kernel/shmall and /proc/sys/kernel/shmmax > to 536870912 i.e 512 Mb. > should i change it to 2 Gb and how

[ADMIN] Indexes on RAM disk = insanity?

2005-07-29 Thread Steve Lane
All: We have a postgres 7.4 server where we're trying to achieve some speedups. Right now, at least superficially, RAM appears to be the bottleneck -- lots of swaps in and out. There is another consultant beside myself in the mix and he asked this question: can we put the database indexes on a RA

Re: [ADMIN] start postgresql8 with -o "-i" option

2005-07-29 Thread Bruce Momjian
Guido Barosio wrote: > Thought that v8 started with default tcp availability. It is _enabled_ by default for connections, but local clients don't use tcp by default. --- > > G. > > On 7/29/05, Tom Lane <[EMAIL PROTECTED]>

Re: [ADMIN] start postgresql8 with -o "-i" option

2005-07-29 Thread Guido Barosio
Thought that v8 started with default tcp availability. G.On 7/29/05, Tom Lane <[EMAIL PROTECTED]> wrote: =?GB2312?B?zfXP/ruq?= <[EMAIL PROTECTED]> writes:> /usr/local/pgsql/bin/postmaster -o "-i" -D /usr/local/pgsql/dataThat should be just  /usr/local/pgsql/bin/postmaster -i -D /usr/local/pgsql/da

Re: [ADMIN] Is there anyway to retrieve server name and/or ip from query

2005-07-29 Thread Michael Fuhr
On Fri, Jul 29, 2005 at 09:48:28AM -0400, Chris Hoover wrote: > Subject pretty much says it all. Is there a way in a sql query to > have it return the server name and/or the server ip address of the > PostgreSQL server? Depends on the version of PostgreSQL. In 8.0 you can use inet_server_addr():

Re: [ADMIN] Is there anyway to retrieve server name and/or ip from query

2005-07-29 Thread Bruce Momjian
Chris Hoover wrote: > Subject pretty much says it all. Is there a way in a sql query to > have it return the server name and/or the server ip address of the > PostgreSQL server? 8.0 has such informix via functions: test=> \df *server* List of fu

Re: [ADMIN] start postgresql8 with -o "-i" option

2005-07-29 Thread Tom Lane
=?GB2312?B?zfXP/ruq?= <[EMAIL PROTECTED]> writes: > /usr/local/pgsql/bin/postmaster -o "-i" -D /usr/local/pgsql/data That should be just /usr/local/pgsql/bin/postmaster -i -D /usr/local/pgsql/data You seem to be confusing pg_ctl syntax with postmaster syntax. regards,

[ADMIN] Is there anyway to retrieve server name and/or ip from query

2005-07-29 Thread Chris Hoover
Subject pretty much says it all. Is there a way in a sql query to have it return the server name and/or the server ip address of the PostgreSQL server? thanks, Chris ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ?

Re: [ADMIN] Speed Up clean_pending.pl?

2005-07-29 Thread Guido Barosio
sql `set enable_seqscan to off;` may help here? Regards, g On 7/29/05, John Abel <[EMAIL PROTECTED]> wrote: Hi,The company I'm at is running dbmirror, and we've found a problem withclean_pending,pl, in that it takes an age to run.  I've done somelooking about, and came with up this: http://www.po

[ADMIN] postgres optimization

2005-07-29 Thread Kailash Vyas
hi i am optmizing postgres database and need some help on it. I currently have a server with 2 Gb RAM. I have setup the /proc/sys/kernel/shmall and /proc/sys/kernel/shmmax to 536870912 i.e 512 Mb. should i change it to 2 Gb and how will it affect the perfomance and will there be any downsides to

Re: [ADMIN] Checkpoint segments

2005-07-29 Thread Simon Riggs
On Tue, 2005-07-26 at 23:22 +0100, Simon Riggs wrote: > If I have a system that writes out one WAL file every 5 minutes, and I > have these settings: > > checkpoint_timeout = 3329 > checkpoint_segments = 1000 > (parameters checked as valid via pg_settings) > > How many WAL files would you expect

[ADMIN] postgres optimization

2005-07-29 Thread Kailash Vyas
hi I need some information to optimize the postgres database server (7.3.10). I have 2 Gb RAM on the server. I have set the /proc/sys/kernel/shmmax and /proc/sys/kernel/shmall to  536870912 (512 Mb) should i set the shmmax and shmall to use 2 GB  or  it is better to keep it less. also how does

Re: [ADMIN] libpq.so.3 compatability problem still there for 8.0.3

2005-07-29 Thread Devrim GUNDUZ
Hi, On Thu, 28 Jul 2005, Gregory Zelesnik wrote: Actually, I do not have postgresql-libs v8.0.2 installed: [EMAIL PROTECTED] downloads]$ rpm -qa | grep postgres rh-postgresql-devel-7.3.6-7 rh-postgresql-tcl-7.3.6-7 postgresql-docs-8.0.3-1PGDG rh-postgresql-pl-7.3.6-7 rh-postgresql-libs-7.3.6-

Re: [ADMIN] PostgreSQL Installation

2005-07-29 Thread Devrim GUNDUZ
Hi, On Fri, 29 Jul 2005, ararant wrote: Is there a way of installing PostgreSQL 8.0.3 not by compiling the source code and not by using rpm? Is there binary files (already compiled) for installation? Installing PostgreSQL in these two ways cause many problems with missing libraries and/or file

[ADMIN] Speed Up clean_pending.pl?

2005-07-29 Thread John Abel
Hi, The company I'm at is running dbmirror, and we've found a problem with clean_pending,pl, in that it takes an age to run. I've done some looking about, and came with up this: http://www.postgresql.org/docs/7.4/interactive/indexes.html After reading the comments on that page, I explain'd

Re: [ADMIN] PostgreSQL Installation

2005-07-29 Thread Bruno Wolff III
On Fri, Jul 29, 2005 at 03:30:23 -0300, ararant <[EMAIL PROTECTED]> wrote: > Is there a way of installing PostgreSQL 8.0.3 not by > compiling the source code and not by using rpm? Is there > binary files (already compiled) for installation? > Installing PostgreSQL in these two ways cause many pro