[ADMIN] Postgres replication solutions

2006-07-28 Thread Mario Splivalo
So, I'd like a recommendation. Mario -- Mario Splivalo Mob-Art [EMAIL PROTECTED] "I can do it quick, I can do it cheap, I can do it well. Pick any two." ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [ADMIN] Postgres replication solutions

2006-07-29 Thread Mario Splivalo
On Fri, 2006-07-28 at 11:01 -0700, Jeff Frost wrote: > Mario, > > There's also Command Prompt's Mammoth replicator: > http://commandprompt.com/products/mammothreplicator/ I sent an email asking if they have an evaluation version of some sort... > Also, you could batch up PITR restores or even j

[ADMIN] createdb: database postgres does not exists

2007-04-20 Thread Mario Splivalo
I have postgres 8.1 on WindowsXP, installed via postgres installer. I have the user postgres on the cluster. When I try to create database from command line: createdb -U postgres test_db_1 I get error that 'postgres database does not exists'. When I try to create db from EMS manager, everything w

[ADMIN] Postgres8.2 - turning off BINGLOG/PARSELOG

2007-06-19 Thread Mario Splivalo
I'm finaly switching to 8.2. I notice that ugly 'feature' from pg8.1 has been fixed: logging the parametars of prepared statements. It's a bit ugly, but it's there :) But now in my log i have BINDLOG, PARSELOG and others, and my log looks realy cloged. Here is an example. I'm calling the 'create_m

Re: [ADMIN] Postgres8.2 - turning off BINGLOG/PARSELOG

2007-06-19 Thread Mario Splivalo
On Tue, 2007-06-19 at 10:52 -0400, Alvaro Herrera wrote: > Mario Splivalo wrote: > > I'm finaly switching to 8.2. I notice that ugly 'feature' from pg8.1 has > > been fixed: logging the parametars of prepared statements. It's a bit > > ugly, but it'

Re: [ADMIN] Cluster/Replication

2007-10-22 Thread Mario Splivalo
cho wrote: Le Fri, 19 Oct 2007 12:43:40 -0400, Sean Brown a écrit : Have a look at pgpool-I or pgpool-II in replication mode. Pgpool proxies SQL requests, so that requests on one server are replayed on the other. pgpool-I is limited to two nodes, whereas pgpool-II is not. Latency is importan

[ADMIN] psql shell return codes - checking if database exists

2008-04-15 Thread Mario Splivalo
I need to check, from a bash script, if certain database exists in a postgres cluster. When I issue: psql -U someuser somedatabase psql returns error code 2 regardless of 'no user' or 'no database' condition. How could I distinguish from the two? Mario -- Sent via pgsql-admin mailing lis

[ADMIN] Diffs between two databases...

2005-11-18 Thread Mario Splivalo
bject into a separate file. Then I could create a script wich will 'load' each object from the file when I want it (so I don't have dependency problems). Is there a tool like that, or should I stick with pg_dump/pg_restore, or maybe even going trough information_schema to see al

Re: [ADMIN] Server Hardware Configuration

2005-11-21 Thread Mario Splivalo
e was zero minutes. Mike -- Mario Splivalo Mob-Art [EMAIL PROTECTED] "I can do it quick, I can do it cheap, I can do it well. Pick any two." ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [ADMIN] installation of postgresql8.0.1 on Solaris 10

2005-11-21 Thread Mario Splivalo
; $ ld.so.l: /usr/local/pgsql/bin/initdb: fatal: libreadline.so.4: open > failed: No such file or directory > > Note /usr/local/pgsql/data is owned by postgres > > > Olive > > Mario Splivalo <[EMAIL PROTECTED]> wrote: > On Sun, 2005-11-20 at 02:16 -080

Re: [ADMIN] Accumulating idle processes

2005-11-21 Thread Mario Splivalo
much slower) because I was missing several 'pg_close()' instructions. The same thing happened to my developers here, using java/tomcat/jdbc to connect to postgres. Make sure you close all your postgres connections. Mike -- Mario Splivalo Mob-Art [EMAIL PROTECTED] "I can do

Re: [ADMIN] Server Hardware Configuration

2005-11-21 Thread Mario Splivalo
On Mon, 2005-11-21 at 10:58 +0100, Marcin Giedz wrote: > Dnia poniedziałek, 21 listopada 2005 10:34, Mario Splivalo napisał: > > On Sun, 2005-11-20 at 11:53 -0600, Jim C. Nasby wrote: > > > Two general comments: most people find that Opterons perform much better > >

Re: [ADMIN] Delete slow...

2005-11-29 Thread Mario Splivalo
ad design. What do you delete from a 400.000 records table? I guess it's ok to be slow. Mike -- Mario Splivalo Mob-Art [EMAIL PROTECTED] "I can do it quick, I can do it cheap, I can do it well. Pick any two." ---(end of broadcast)--

[ADMIN] Logging nested function calls...

2006-01-10 Thread Mario Splivalo
the one that client called. Is there a way to tell postgres to log all the nested functions? I'm using postgresql 8.1.2. Thanks in advance. Mike -- Mario Splivalo Mob-Art [EMAIL PROTECTED] "I can do it quick, I can do it cheap, I can do it well. Pick any two." -

[ADMIN] Pg 7.4 to 8.1 UTF problems

2006-02-10 Thread Mario Splivalo
o 8.1.2, but so that database on 8.1.2 is with -E UTF8? Mike -- "I can do it quick, I can do it cheap, I can do it well. Pick any two." Mario Splivalo [EMAIL PROTECTED] ---(end of broadcast)--- TIP 6: explain analyze is your friend

[ADMIN] pg_diff, or something like it...?

2006-02-28 Thread Mario Splivalo
reate them), and then restart the application. But, for now, just a 'dependency tracker' of some sort would be a huge help. Mario -- Mario Splivalo Mob-Art [EMAIL PROTECTED] "I can do it quick, I can do it cheap, I can do it well. Pick any two." ---

[ADMIN] SELECT statements in log files

2006-03-03 Thread Mario Splivalo
values for the parameters. Mario -- Mario Splivalo Mob-Art [EMAIL PROTECTED] "I can do it quick, I can do it cheap, I can do it well. Pick any two." ---(end of broadcast)--- TIP 6: explain analyze is your friend

[ADMIN] Reclaiming used disk space

2006-05-19 Thread Mario Splivalo
test database? Mario -- Mario Splivalo Mob-Art [EMAIL PROTECTED] "I can do it quick, I can do it cheap, I can do it well. Pick any two." ---(end of broadcast)--- TIP 6: explain analyze is your friend

[ADMIN] Getting UPDATEs/INSERTs/DELETEs from transaction log?

2006-05-23 Thread Mario Splivalo
I'm doing backup on a second, spare server, by backing up WAL files. I'm using that server for analysis queries and reporting. Every 15 minutes I need to shut down that server, place in new WAL files, and restart server. That is ok, except that I need to backup whole database cluster. That wasnt't

[ADMIN] archive_log command...

2006-06-21 Thread Mario Splivalo
ed-up server). Mario -- Mario Splivalo Mob-Art [EMAIL PROTECTED] "I can do it quick, I can do it cheap, I can do it well. Pick any two." ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [ADMIN] archive_log command...

2006-06-22 Thread Mario Splivalo
On Wed, 2006-06-21 at 21:30 -0400, Bruce Momjian wrote: > Mario Splivalo wrote: > > Can I force archiving of the WAL files using CHECKPOINT statement? My > > checkpoing_segments is set to 32, but still archive_command is beeing > > called up only every 45 minutes or so. Is

[ADMIN] Live sort-of-'warehousing' database how-to?

2010-03-31 Thread Mario Splivalo
Suppose I have 'stupid' database with just one tables, like this: CREATE TABLE messages ( message_id uuid NOT NULL PRIMARY KEY, message_time_created timestamp with time zone NOT NULL, message_phone_number character varying NOT NULL, message_state type_some_state_enu

Re: [ADMIN] Live sort-of-'warehousing' database how-to?

2010-04-01 Thread Mario Splivalo
Igor Neyman wrote: > > Partition your MESSAGES table by week or month (read on table > partitioning in PG docs). > > Pg_dump "old" purtitions from "current" server, when they are not needed > any more. > Move backups of dumped partitions to your "auxilary" server, and > pg_restore them there. H

[ADMIN] Reseting statistics, cluster wide

2011-04-20 Thread Mario Splivalo
I have set up munin monitoring that plots nice graphs using pg_stat_bgwriter and pg_stat_database views. It has been on for quite some time now, and the numbers those views return are too big for munin to handle. I would like to reset those statistics. As explained by manual, pg_stat_reset() re

Re: [ADMIN] Reseting statistics, cluster wide

2011-04-21 Thread Mario Splivalo
On 04/20/2011 10:49 PM, raghu ram wrote: On Thu, Apr 21, 2011 at 1:01 AM, Mario Splivalo mailto:mario.spliv...@megafon.hr>> wrote: I have set up munin monitoring that plots nice graphs using pg_stat_bgwriter and pg_stat_database views. It has been on for quite some time now, a

Re: [ADMIN] Reseting statistics, cluster wide

2011-04-22 Thread Mario Splivalo
On 04/22/2011 03:20 PM, Cédric Villemain wrote: 2011/4/21 raghu ram: Heh, I've neglected to mention that i'm using postgres 8.4.5 on Debian Stable. Is there a way to reset statistics on pg8.4? I've tested it on 9.0 and it works there. AFAIK, I dont think we can achieve this in PG 8.4 at clus

Re: [ADMIN] Reseting statistics, cluster wide

2011-04-22 Thread Mario Splivalo
On 04/22/2011 04:26 PM, Cédric Villemain wrote: ah yes. There exist a very brutal way to do it, which will remove all stats. (you need the server to be down to do that) move or rm the "global/pgstat.stat" file. To come back to your original problem : I am surprised you have too large value for m

[ADMIN] COMMIT takes long time for read only transaction

2011-05-26 Thread Mario Splivalo
Hi, all. Postgres 8.4.4, quite often I have situation like this: 011-05-26 18:25:38.842 CEST [16163] [192.168.1.5(32431)] SET LOG: duration: 0.029 ms statement: BEGIN; SET TRANSACTION ISOLATION LEVEL READ COMMITTED 2011-05-26 18:25:38.843 CEST [16163] [192.168.1.5(32431)] SELECT LOG: dur

[ADMIN] Replicating privileges from one user to another

2011-07-19 Thread Mario Splivalo
I have user foo that is owner of database dbfoo. Now I need to create user baz that will have the exact same privileges as user foo on database baz. I've tried this: GRANT ALL ON DATABASE dbfoo TO baz; but I still can't select form tables. Is there a easier way, or do I need to go trough all

[ADMIN] Giving postgres roles 'sudo'-like access

2011-12-19 Thread Mario Splivalo
I need to have postgres role to be able to cancel queries run by that same role. I know that I can kill the client connection that started the query, but I also need to have that role connect to postgres and kill some of it's running queries. It's on postgres 9.1.1, running on Debian Squeeze. On

Re: [ADMIN] Giving postgres roles 'sudo'-like access

2011-12-20 Thread Mario Splivalo
On 12/19/2011 07:46 PM, Craig James wrote: > Backend Postgres processes run as the Postgres user, so they have > permission to kill each other. You write an add-on function that just > kills a process: > > select my_kill_backend(pid); > > Naturally, this is very dangerous. There are all sorts

[ADMIN] ssl3 errors in replication.

2012-02-01 Thread Mario Splivalo
I have these errors in my log files, occurring very often: 2012-02-02 01:05:53 CST [4103]: [2-1] user=,db= FATAL: could not receive data from WAL stream: SSL error: sslv3 alert unexpected message 2012-02-02 01:05:58 CST [20507]: [301-1] user=,db= LOG: invalid magic number in log fi

[ADMIN] Getting master host info from a slave

2012-02-02 Thread Mario Splivalo
How can I get the master server host data from a running slave, without reading recovery.conf file? I've tried with SHOW, but that just gives me: postgres=# show primary_conninfo; ERROR: unrecognized configuration parameter "primary_conninfo" Mario -- Sent via pgsql-admin mailing list

Re: [ADMIN] ssl3 errors in replication.

2012-02-02 Thread Mario Splivalo
On 02/02/2012 05:16 PM, Tom Lane wrote: > Mario Splivalo writes: >> I have these errors in my log files, occurring very often: >> 2012-02-02 01:05:53 CST [4103]: [2-1] user=,db= FATAL: could not >> receive data from WAL stream: SSL error: sslv3 alert unexpected message >

Re: [ADMIN] ssl3 errors in replication.

2012-02-02 Thread Mario Splivalo
On 02/02/2012 05:15 PM, Mario Splivalo wrote: > On 02/02/2012 05:16 PM, Tom Lane wrote: >> Mario Splivalo writes: >>> I have these errors in my log files, occurring very often: >>> 2012-02-02 01:05:53 CST [4103]: [2-1] user=,db= FATAL: could not >>> receive da