Re: [ADMIN] with PostgreSQL 9.1.9,the stats collector process is not work!

2013-04-10 Thread Vasilis Ventirozos
On Thursday, April 11, 2013, X.H.WANG <82661...@qq.com> wrote: > Hello everybody: > > After I switch the slave to the master , I can not get the stats > information by the below sql and the pg_stat_reset() does not work on the > New Master, > And I vacuum by hand,it's still not work! I ne

Re: [ADMIN] Experience with large number of tables in single PostgreSQL instance

2013-04-10 Thread Vasilis Ventirozos
On Wed, Apr 10, 2013 at 10:10 AM, Vedran Krivokuca wrote: > On Wed, Apr 10, 2013 at 9:07 AM, Vedran Krivokuca > wrote: > > 1) we can go with different instances of PostgreSQL service, let's say > > (for pure theory) 10 of them on the same HA cluster setup. Every > > instance would hold let's say

Re: [ADMIN] Dump only functions

2013-03-28 Thread Vasilis Ventirozos
something like this would probably work too for a in `echo "SELECT p.proname FROM pg_catalog.pg_proc p LEFT JOIN pg_catalog.pg_namespace n ON n.oid = p.pronamespace WHERE pg_catalog.pg_function_is_visible(p.oid) AND n.nspname <> 'pg_catalog' AND n.nspname <> 'information_schema'"|psql -A -t test`;

Re: [ADMIN] Reduce the size of the archived-log directory

2013-03-28 Thread Vasilis Ventirozos
The size of your directory will increase by 16mb on every checkpoint (16Mb or 5 mins) so, even if your DB is completely idle you will get 16Mb per 5 mins, make the calculations and you'll see the space you need per day. Vasilis Ventirozos On Thu, Mar 28, 2013 at 8:54 AM, Hoàng Thanh Toàn

Re: [ADMIN] Dump only functions

2013-03-27 Thread Vasilis Ventirozos
7;"|psql -A -t test`; do echo "SELECT pg_get_functiondef('$a'::regproc);"|psql -A -t test >$a.function.sql ;done Worked for me, will give you one file per function , called functionname.function.sql i just wrote it so i haven't test it much Vasilis Ve

Re: [ADMIN] tables mysteriously truncated

2013-03-13 Thread Vasilis Ventirozos
an unlogged table will be truncated at database restart in case of a crash or unclean shutdown, could that be the case ? Vasilis Ventirozos On Wed, Mar 13, 2013 at 7:36 PM, "Gabriel E. Sánchez Martínez" < gabrielesanc...@gmail.com> wrote: > I have run into an annoying

Re: [ADMIN] thats funny :)

2005-05-09 Thread Vasilis Ventirozos
resembles subjects seen on some viruses.] On Mon, May 09, 2005 at 02:06:46PM +0300, Vasilis Ventirozos wrote: hi all i created a function that restarts the server, i will show you what i am doing The trigger function you posted is called whenever you insert a record into the favorites table

[ADMIN] thats funny :)

2005-05-09 Thread Vasilis Ventirozos
hi all i created a function that restarts the server, i will show you what i am doing drop trigger lala_trig on favorites; drop function fav_funct() cascade; create or replace function fav_funct() returns trigger AS ' declare old_id int default 0; new_id int default 0; rec record; rec2 record; re

[ADMIN] about set autocommit

2004-01-13 Thread Vasilis Ventirozos
Hi all i sow that in postgres 7.4.x set autocommit to off is not supported but as i was searching in web i saw : " If you prefer autocommit-off, you may wish to set it in your .psqlrc file." How can i do that ? Thanx Vasilis Ventirozos ---(end of

[ADMIN] How can i know the users that are loged in

2003-12-10 Thread Vasilis Ventirozos
loged in Thanx in advance Vasilis Ventirozos ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [ADMIN] how to take a single table data backup in postgres 7.2.3 database.?

2003-09-25 Thread Vasilis Ventirozos
On Thursday 25 September 2003 12:01, you wrote: > Hi , > > I would appreciate if some one could help me how to take a sin pg_dump -t tablename dbname ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

[ADMIN] Recycle The Wal logs

2003-09-17 Thread Vasilis Ventirozos
I have some Gigs of useless transaction logs from databases that i have created-droped etc.. can i recycle the logs or i have to run initdb again ? Vasilis Ventirozos ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL

Re: [ADMIN] File Sytems Types and Os Recomendations

2003-09-17 Thread Vasilis Ventirozos
Try loading the data first and then create the indexes i recently loaded 50 Million rows in a table much bigger and it took about 1hour including the creation of indexes . Vasilis Ventirozos ---(end of broadcast)--- TIP 7: don't forg

Re: [ADMIN] Are 50 million rows a problem for postgres ?

2003-09-08 Thread Vasilis Ventirozos
The Server is a dual Xeon 2.4 HP with a 15k rpm scsi disk and 2 Gigz of ram # Connection Parameters # tcpip_socket = true #ssl = false #max_connections = 32 #superuser_reserved_connections = 2 port = 5432 #hostname_lookup = false #show_source_port = false #unix_socket_directory =

Re: [ADMIN] Are 50 million rows a problem for postgres ?

2003-09-08 Thread Vasilis Ventirozos
I use the default comfiguration file with the tcpip enabled any sagestion about the configuration file ? ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [ADMIN] Are 50 million rows a problem for postgres ?

2003-09-08 Thread Vasilis Ventirozos
This is a simple statement that i run core_netfon=# EXPLAIN select spcode,count(*) from callticket group by spcode; QUERY PLAN --- Aggregate (cost=2057275.91..2130712.22 rows

Re: [ADMIN] Are 50 million rows a problem for postgres ?

2003-09-08 Thread Vasilis Ventirozos
it's not a stadard statement, i am tring to get statistics for the company and i see a lack of performance (the same statement on informix runs good with the same indexes of course) Vasilis Ventirozos ---(end of broadcast)--- TIP 8: ex

[ADMIN] Are 50 million rows a problem for postgres ?

2003-09-08 Thread Vasilis Ventirozos
ave a huge database to ask him some issues ? my hardware is good ,my indexes are good plz dont answer me something like use vacuum :) The Joy of Index Vasilis Ventirozos ---(end of broadcast)--- TIP 8: explain analyze is your friend