[ADMIN] Error inserting row on unique key

2006-04-20 Thread Benjamin Krajmalnik
I have a large table which uses a sequence for column which is defined as the primary key. Our systems is a real time data acquisition system, so we have "insert" statements going through it wrapped inside stored procedure. Every once in a while I get an inserio error on a violation of a unique

Re: [ADMIN] Error inserting row on unique key

2006-04-20 Thread Benjamin Krajmalnik
2 end case Any suggestions on how to formulate either the trigger procedure or a rule would be greatly appreciated. Regards, Benjamin -Original Message- From: Allan Kamau [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 3:38 PM To: Benjamin Krajmalnik Cc: pgsql-admin@postgresq

[ADMIN] Howto: Using PITR recovery for standby replication

2006-04-20 Thread Benjamin Krajmalnik
Title: Re: [ADMIN] Slony1 or DRBD for replication ? I am running PostgreSQL 8.1.3 on Windows. The project itself is a real time data acquisition system, so it cannot be taken off-line for backups. I have tried using pg_dump, but discovered that the backup was not a consistent backup. The ap

Re: [ADMIN] Howto: Using PITR recovery for standby replication

2006-04-20 Thread Benjamin Krajmalnik
/2006 9:09 PMTo: Benjamin KrajmalnikCc: pgsql-admin@postgresql.orgSubject: Re: [ADMIN] Howto: Using PITR recovery for standby replication "Benjamin Krajmalnik" <[EMAIL PROTECTED]> writes:> I have tried using pg_dump, but discovered that the backup was not a => consistent

Re: [ADMIN] slow cursor

2006-04-20 Thread Benjamin Krajmalnik
Title: Re: [ADMIN] slow cursor Siriam,   I have no clue what it is you are trying to do, but I have a similar situation.  I have a monitoring system which sends data to our psotgresql database.  The system calls a single stored procedure which performs on-the-fly data aggregation for the p

Re: [ADMIN] Howto: Using PITR recovery for standby replication

2006-04-20 Thread Benjamin Krajmalnik
abase as a whole.   From: Alvaro Herrera [mailto:[EMAIL PROTECTED]Sent: Thu 4/20/2006 10:02 PMTo: Benjamin KrajmalnikCc: Tom Lane; pgsql-admin@postgresql.orgSubject: Re: [ADMIN] Howto: Using PITR recovery for standby replication Benjamin Krajmalnik wrote:> The particular table which wa

Re: [ADMIN] Howto: Using PITR recovery for standby replication

2006-04-20 Thread Benjamin Krajmalnik
t: Re: [ADMIN] Howto: Using PITR recovery for standby replication Benjamin Krajmalnik wrote:> I am a newbie, so I essentially invoked pg_dump from with pgAdmin3,> with the defaults (including large objects).  This is the command> being issued:> > .C:\Program Files\PostgreSQL\8.1\bi

Re: [ADMIN] Howto: Using PITR recovery for standby replication

2006-04-20 Thread Benjamin Krajmalnik
o why I am experiencing the contraing violation on the unique primary key.   Regards,   Benjamin  From: Tom Lane [mailto:[EMAIL PROTECTED]Sent: Thu 4/20/2006 9:09 PMTo: Benjamin KrajmalnikCc: pgsql-admin@postgresql.orgSubject: Re: [ADMIN] Howto: Using PITR recovery for standby replication

[ADMIN] Tale partitioning

2006-04-26 Thread Benjamin Krajmalnik
I have created a parent table and inherited into several tables to facilitate table partitioning. I noticed that the inherited tables did not inherit any of the indices, etc. in their DDL. Do these need to be created, or are they actually there via inheritance but only “used” when the par

Re: [ADMIN] Table partitioning

2006-04-26 Thread Benjamin Krajmalnik
rows.     From: Chris Hoover [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 2:33 PM To: Benjamin Krajmalnik Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] Tale partitioning   Each of the partition tables needs it's own set of indexes.  Build them, and see if the

Re: [ADMIN] Table partitioning

2006-04-26 Thread Benjamin Krajmalnik
y [mailto:[EMAIL PROTECTED]Sent: Wed 4/26/2006 4:52 PMTo: Benjamin KrajmalnikCc: Chris Hoover; pgsql-admin@postgresql.orgSubject: Re: [ADMIN] Table partitioning Can we see the output of \d tablename as well as EXPLAIN ANALYZE of theselect?On Wed, Apr 26, 2006 at 02:48:50PM -0600, Benjamin Krajma

[ADMIN] New system recommendations

2006-04-26 Thread Benjamin Krajmalnik
I am about to take a system from testing into production. The system is a combination oltp/bi (network monitoring platform). We are currently inserting about 1 million rows per day, and will increase to probably 5 million once it goes into full deployment. The current test production ser

Re: [ADMIN] New system recommendations

2006-04-27 Thread Benjamin Krajmalnik
I was thinking of going Raid 0 to increase the active spindles. But, come to think about it, if I go to FreeBSD I really do not need to go that route, since I can use a symlink and, as suggested, move the logs to another spindle. I was also wary of the Raid 0 approach - specially since last year I

Re: [ADMIN] New system recommendations

2006-04-28 Thread Benjamin Krajmalnik
The stored procedure is a plpgsql function which gets passed parameters from the monitoring agent. It then dynamically creates a device record for the monitored device if one does not yet exist. Once that is done it creates a test record for the particular test if one does not exist. Once that is d

Re: [ADMIN] New system recommendations

2006-04-28 Thread Benjamin Krajmalnik
at once.  It would be great if we could aggregate an array in one hot, but in the meantime we’ll do it this way.     From: Scott Marlowe [mailto:[EMAIL PROTECTED] Sent: Friday, April 28, 2006 9:24 AM To: Benjamin Krajmalnik Cc: Ben K.; pgsql-admin@postgresql.org Subject: Re: [ADMIN] New

[ADMIN] PostgreSQL 8.1.3/Windows

2006-05-08 Thread Benjamin Krajmalnik
I was looking at the files inside my database and came across files which have the same OID number as the filename but some had extensions (in my case .1 and .2). What are these files?  Can they be safely deleted?   In my case, they are quite large (over 1GB each).   Regards,   Benja

Re: [ADMIN] PostgreSQL 8.1.3/Windows

2006-05-08 Thread Benjamin Krajmalnik
Thanks. That definitely would not have been pretty J   From: Larry Rosenman [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 2:45 PM To: Benjamin Krajmalnik; pgsql-admin@postgresql.org Subject: RE: [ADMIN] PostgreSQL 8.1.3/Windows   They are the 1GB segments of your

[ADMIN] Strange errors in log file

2006-05-25 Thread Benjamin Krajmalnik
I am running PostgreSQL 8.1.3/Win   Earlier yesterday, it appeared that the server stopped responding. I went through the log files and noticed the following type of entries.     22462 is the filenode for my database.  I could not find what the other two are.     2006-05-24 12:16:3

[ADMIN] pg_clog questions

2006-05-25 Thread Benjamin Krajmalnik
While checking our server, I noticed quite a few files in the pg_clog directory. These files date from today back to the day when I installed PostgreSQL. Is there a maintenance task which can be run to purge the files which are no longer needed? I assume the majority of them are not need

Re: [ADMIN] Strange errors in log file

2006-05-25 Thread Benjamin Krajmalnik
- From: Scott Marlowe [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 1:14 PM To: Benjamin Krajmalnik Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] Strange errors in log file On Thu, 2006-05-25 at 14:00, Benjamin Krajmalnik wrote: > I am running PostgreSQL 8.1.3/

Re: [ADMIN] Strange errors in log file

2006-05-25 Thread Benjamin Krajmalnik
This is running on an HP DL360, SCSI RAID1, 2GB RAM, running Windows Server 2003. -Original Message- From: Scott Marlowe [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 1:20 PM To: Benjamin Krajmalnik Cc: pgsql-admin@postgresql.org Subject: RE: [ADMIN] Strange errors in log file

Re: [ADMIN] Strange errors in log file

2006-05-25 Thread Benjamin Krajmalnik
Currently running 8.1.3. Will be upgrading shortly. -Original Message- From: Scott Marlowe [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 1:44 PM To: Benjamin Krajmalnik Cc: pgsql-admin@postgresql.org Subject: RE: [ADMIN] Strange errors in log file And the postgresql version

Re: [ADMIN] pg_clog questions

2006-05-25 Thread Benjamin Krajmalnik
autovacuum is running on all databases. -Original Message- From: Tom Lane [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 2:01 PM To: Benjamin Krajmalnik Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] pg_clog questions "Benjamin Krajmalnik" <[EMAIL PROTE

Re: [ADMIN] Strange errors in log file

2006-05-25 Thread Benjamin Krajmalnik
and explicitly added the postgresql service account and given it full access rights to the directory. Maybe this will keep it from recurring. -Original Message- From: Tom Lane [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 1:59 PM To: Benjamin Krajmalnik Cc: Scott Marlowe; pgsql

Re: [ADMIN] pg_clog questions

2006-05-25 Thread Benjamin Krajmalnik
Thanks. I revacumed and now they are gone. -Original Message- From: Alvaro Herrera [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 4:40 PM To: Benjamin Krajmalnik Cc: Tom Lane; pgsql-admin@postgresql.org; Matthew T. O'Connor Subject: Re: [ADMIN] pg_clog questions Ben

Re: [ADMIN] pg_clog questions

2006-05-25 Thread Benjamin Krajmalnik
PM To: Benjamin Krajmalnik Cc: pgsql-admin@postgresql.org; Alvaro Herrera; Matthew T. O'Connor Subject: Re: [ADMIN] pg_clog questions "Benjamin Krajmalnik" <[EMAIL PROTECTED]> writes: >>> While checking our server, I noticed quite a few files in the pg_clog >>>

[ADMIN] 8.1.4 Windows - big improvement!

2006-05-26 Thread Benjamin Krajmalnik
I just migrated to 8.1.4/Win this morning. Under 8.1.3 I would consistently see messages concerning problems with the statistics collector thread. So far, not a single log entry, which is good.   I would like to thank all of the developers for such a great product, and a seamless upgrad

[ADMIN] Table truncate question

2006-06-14 Thread Benjamin Krajmalnik
I recently truncated a partitioned table. When I look at the statistics for the table, it shows tuples inserted as zero (which I would expect), but it did not clear the value for tuples updated and tuples deleted. Is this the expected behavior?  I would assume that the updated/deleted sta

[ADMIN] General question regarding sequences (Serial columns)

2006-06-15 Thread Benjamin Krajmalnik
I am in the process of writing a migration utility to move data from a SQL Server to PostgreSQL. The original schema contains identity fields. When converting the schema, I have 2 option - either make them serial (or bigserisl) columns, with the associated automatic constraint, or declaring the as

Re: [ADMIN] General question regarding sequences (Serial columns)

2006-06-15 Thread Benjamin Krajmalnik
, 2006 11:28 AM To: Benjamin Krajmalnik Subject: Re: [ADMIN] General question regarding sequences (Serial columns) > If I were to use the former (use Serial/BigSerial), is there a command > which I can issue to keep PostgreSQL from using the sequence, and > therefore copying over the original

Re: [ADMIN] truncate partitioned table locking

2006-06-19 Thread Benjamin Krajmalnik
Sriram, I do this on monthly tables which have about 30 million rows. Last time I truncated a partition it took anout 2 milliseconds. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sriram Dandapani Sent: Monday, June 19, 2006 12:41 PM To: Tom Lane Cc: pg

Re: [ADMIN] truncate partitioned table locking

2006-06-20 Thread Benjamin Krajmalnik
Siriam, As I mentioned to you yesterday, I have a partitioned table which gets over a million inserts per day (routed to the correct partition via triggers). Each partition holds one month' worth of data, so approximately 30 million rows. Last time I truncated the oldest partition took 2 ms. -

Re: [ADMIN] Using PostgreSQL and MIcrosoft SQLServer on the same server

2006-06-26 Thread Benjamin Krajmalnik
In addition to what Rodrigo said so eloquently in Portuguese (no fallu prtugues! ), the only issue you will experience is a performance hit. It is not a good idea to have 2 separate database servers running on the same set of drive spindles.  I usually deploy them in different servers.  Th

[ADMIN] Querying database size

2006-07-07 Thread Benjamin Krajmalnik
Is there a query which can be issued which will return the size of a database? I see that in pgadmin you can get the values on a per table manner. I have looced at the pg_catalog schema, but to be truthful I cannot figure out how to get that information. TIA, Benjamin ---

[ADMIN] Identifying object from file on disk

2006-07-12 Thread Benjamin Krajmalnik
I have a very strange situation where all of a sudden my database growth has increased dramatically. I made some schema changes, bit these were made to some tables which do not have the massive insertion rate (a few fields were changed from varchar to inet data types. The tables which have the mass

[ADMIN] Determining object name from filenode

2006-07-13 Thread Benjamin Krajmalnik
Is there a way to determine the name of an object based on the filenode number? ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

[ADMIN] Table size growing for no reason

2006-07-13 Thread Benjamin Krajmalnik
I am running PostgreSQL 8.1.4 on windows. I have a table with the following structure:   CREATE TABLE "public"."tblksaura" (  "ksaurasysid" SERIAL,   "testtime" TIMESTAMP WITHOUT TIME ZONE,   "lasthouralive" DOUBLE PRECISION[],   "last24hrsalive" DOUBLE PRECISION[],   "last7daysalive" DOUB

Re: [ADMIN] Table size growing for no reason

2006-07-13 Thread Benjamin Krajmalnik
eason > > On 7/13/06, Benjamin Krajmalnik <[EMAIL PROTECTED]> wrote: > > > > > > I am running PostgreSQL 8.1.4 on windows. > > I have a table with the following structure: > > > > CREATE TABLE "public"."tblksaura" ( > > &quo

[ADMIN] Unexplained growth of tables

2006-07-23 Thread Benjamin Krajmalnik
This is subsequent to the previous issue which I am expperiencing. In my monitoring application, I have a few tables which contain few rows but are constantly pounded with updates. These tables are growing at very high rates. For example, a table with less than 4K rows, which when reloaded was ab

Re: [ADMIN] Unexplained growth of tables

2006-07-23 Thread Benjamin Krajmalnik
t: Sunday, July 23, 2006 11:48 AM > To: Peter Eisentraut > Cc: pgsql-admin@postgresql.org; Benjamin Krajmalnik > Subject: Re: [ADMIN] Unexplained growth of tables > > Peter Eisentraut <[EMAIL PROTECTED]> writes: > > Benjamin Krajmalnik wrote: > >> What can be cau

Re: [ADMIN] Unexplained growth of tables

2006-07-24 Thread Benjamin Krajmalnik
enough to point me in the right direction. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Benjamin Krajmalnik > Sent: Sunday, July 23, 2006 2:06 PM > To: Tom Lane; Peter Eisentraut > Cc: pgsql-admin@postgresql.org

[ADMIN] PostgreSQL hanging

2006-07-31 Thread Benjamin Krajmalnik
I am runing PG 8.1.4/Windows. Over the weekend, I have had to restart the PostgreSQL service a couple of times after PG hangs. At the time this happens, the log is showing entries such as the one below 2006-07-31 09:19:55 LOG: could not rename file "pg_xlog/0001020800E1" to "pg_xlog/0

Re: [ADMIN] PostgreSQL hanging

2006-07-31 Thread Benjamin Krajmalnik
no AV running. Nothing there to do anything on the file. There are only 2 applications running on that box - PostgreSQL and Apache. From: Shoaib Mir [mailto:[EMAIL PROTECTED] Sent: Monday, July 31, 2006 11:58 AMTo: Benjamin KrajmalnikCc: pgsql-admin@postgresql.orgSubject: Re:

[ADMIN] Building new FreeBSD box - some assistance needed

2006-07-31 Thread Benjamin Krajmalnik
I am building a new FreeBSD 6.1 box to migrate from the Windows PostgreSQL. I am having some issues getting PostgreSQL to load when I try to duplicate my configuration as running on the Windows box.   I have made the modifications to loader.conf.  All of the SHM values are being set properly

[ADMIN] File system backup question

2006-08-03 Thread Benjamin Krajmalnik
I am currently running PG 8.1.4 windows. The system is for a real time monitoring application (so downtime needs to be minimized if at all possible).   I will be migratng to a new server running PG 8.1.4 on FreeBSD 6.1. I have been playing with various options for migrating the data.  The d

Re: [ADMIN] File system backup question

2006-08-03 Thread Benjamin Krajmalnik
- From: Joshua D. Drake <[EMAIL PROTECTED]> To: Benjamin Krajmalnik <[EMAIL PROTECTED]> CC: pgsql-admin@postgresql.org Sent: Thu Aug 03 21:01:54 2006 Subject: Re: [ADMIN] File system backup question Benjamin Krajmalnik wrote: > I am currently running PG 8.1.4 windows. >

[ADMIN] Restoring dtabase problem

2006-08-04 Thread Benjamin Krajmalnik
I am trying to restore a database from a pg_dump. I have a problematic issue in that a few rows have a problem with UTF-8 encoding. All of these rows are in a specific table. Is there something I can run against the table which will validate the rows which have the bad data and delete the r

Re: [ADMIN] Restoring dtabase problem

2006-08-04 Thread Benjamin Krajmalnik
riday, August 04, 2006 1:36 PM > To: pgsql-admin@postgresql.org > Subject: Re: [ADMIN] Restoring dtabase problem > > Am Freitag, 4. August 2006 19.06 schrieb Benjamin Krajmalnik: > > I am trying to restore a database from a pg_dump. > > I have a problematic issue in that a fe

[ADMIN] Minor problem with autovacuum

2006-08-06 Thread Benjamin Krajmalnik
I have a minor problem with autovacuum. Below are the logs: 2006-08-06 15:37:08 MDTLOG: autovacuum: processing database "postgres" 2006-08-06 15:37:22 MDTFATAL: database "psotgres" does not exist 2006-08-06 15:37:52 MDTFATAL: database "psotgres" does not exist 2006-08-06 15:38:22 MDTFATAL: dat

Re: [ADMIN] Minor problem with autovacuum

2006-08-06 Thread Benjamin Krajmalnik
Ignore question. I found the problem. When I launched pgagent, I had a transposition of the database name. After I identified thi and restarted pgagent everything looks ok. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Benjami

[ADMIN] Performance tuning question

2006-08-07 Thread Benjamin Krajmalnik
I just migrated from PG 8.1.4 Windows to 8.1.4 FreeBSD/i386. All of the data insertion to the database is done via a stored procedure call. I did some benchmarking, and on an empty database the execution time of the stored procedure was about 5 ms on average. This was done running via EMS SQL Mana

Re: [ADMIN] Performance tuning question

2006-08-07 Thread Benjamin Krajmalnik
database does not keep up with it it will stall. Worst case, I will virtualize the monitroing agent, but that will require quite a bit of work on our side. > -Original Message- > From: Chris Mair [mailto:[EMAIL PROTECTED] > Sent: Monday, August 07, 2006 2:54 AM > To: Benjami

Re: [ADMIN] Performance tuning question

2006-08-07 Thread Benjamin Krajmalnik
a separate spindle, are there any other things you can think of which may improve the performance? > -Original Message- > From: Chris Mair [mailto:[EMAIL PROTECTED] > Sent: Monday, August 07, 2006 4:38 PM > To: Benjamin Krajmalnik > Cc: pgsql-admin@postgresql.org > S

[ADMIN] Strange UTF8 issue with pg_dump/pg_restore

2006-08-07 Thread Benjamin Krajmalnik
I have a database whose records are inserted via ODBC. I turned on logging, and the client is explicitly setting the client encoding to UTF.   Rows are inserted into the tables.  When I do a pg_dump, I do not get any errors.  When I try tor restore, I am getting an error regarding an invalid

[ADMIN] Inserting a timed delay in a pl/pgsql procedure

2006-08-18 Thread Benjamin Krajmalnik
I have a problem right now where the execution time of a scheduled stored procedure is creating an issue with our background data logging system. Initially I thought it may be caused due to table locks or the like, but after much testing I have ruled that out, since data is being inserted while the

[ADMIN] pg_dump/pg_restore problem

2006-10-05 Thread Benjamin Krajmalnik
I have a database which has UTF8 encoding enabled (why? I am really not sure why I did tihs other than the source of the data is windows and I had some issues with characters > ascii 128 being sent across from some of the Windows event logs). The problem which I am having is as follows: The data

Re: [ADMIN] pg_dump/pg_restore problem

2006-10-05 Thread Benjamin Krajmalnik
. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Benjamin Krajmalnik > Sent: Thursday, October 05, 2006 12:03 PM > To: pgsql-admin@postgresql.org > Subject: [ADMIN] pg_dump/pg_restore problem > > I have a database which has UTF8 e

[ADMIN] Rules/Triggers executio order

2006-10-18 Thread Benjamin Krajmalnik
I have a partitioned table to which I route data using a trigger. I am changing it to use a set of rules which executes "INSTEAD" on insert. The parent table currently has a trigger.   The system is a live system.  I would prefer to not have to suspend the data flow. If I create the rules,

[ADMIN] Performance question

2006-12-01 Thread Benjamin Krajmalnik
I am battling a performance issue and was wondering if someone could help. PostgreSQL 8.1.5, FreeBSD. I have a very intense stored procedure which performs real time aggregation of data. I captured the stored procedure calls from a production system and pumped them through psql, logging duration

Re: [ADMIN] Performance question

2006-12-04 Thread Benjamin Krajmalnik
t connection. > Better yet, don't make lots of tiny calls to the database if > you can avoid it. > > On Mon, Dec 04, 2006 at 06:28:03PM -0700, Benjamin Krajmalnik wrote: > > Hi Jim, > > > > Apples to apples (as best as I can tell). > > The test procedu

Re: [ADMIN] System Date

2007-01-18 Thread Benjamin Krajmalnik
select CURRENT_TIMESTAMP or select LOCALTIMESTAMP the first has the information with the timezone offset at the end, whereas the second does not. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Negandhi, Nishith Sent: Thursda

Re: [ADMIN] [pgadmin-support] Motivations for PostgreSQL

2007-04-11 Thread Benjamin Krajmalnik
Aaron, Would case studies work? I suggest you mention the Netezza data warehousing appliance - on their site they have comparisons against other systems which will be impressive. Although annecdotal, in my case I had an application running on SQL Server. It could not keep up with the data throug

Re: [ADMIN] 8.3 and 8.4 feature list

2007-05-08 Thread Benjamin Krajmalnik
http://www.postgresql.org/developer/roadmap > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Abraham, Danny > Sent: Tuesday, May 08, 2007 8:25 AM > To: pgsql-admin@postgresql.org > Subject: [ADMIN] 8.3 and 8.4 feature list > > Hi, > > I am migrat

Re: [ADMIN] How to tell how long server has been up?

2007-06-06 Thread Benjamin Krajmalnik
select pg_postmaster_start_time() From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Hoover Sent: Wednesday, June 06, 2007 3:07 PM To: pgsql-admin@postgresql.org Admin Subject: [ADMIN] How to tell how long serve

Re: [ADMIN] How can I tell that the underlying OS is Windows?

2007-07-12 Thread Benjamin Krajmalnik
My Windows box says: "PostgreSQL 8.1.4 on i686-pc-mingw32, compiled by GCC gcc.exe (GCC) 3.4.2 (mingw-special)" My BSD box says: "PostgreSQL 8.1.4 on i686-pc-mingw32, compiled by GCC gcc.exe (GCC) 3.4.2 (mingw-special)" Seems to be the same ---(end of broadcast)

Re: [ADMIN] How can I tell that the underlying OS is Windows?

2007-07-12 Thread Benjamin Krajmalnik
D. Drake [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 12, 2007 3:39 PM > To: Benjamin Krajmalnik > Cc: Adam Witney; pgsql-admin@postgresql.org; Abraham, Danny > Subject: Re: [ADMIN] How can I tell that the underlying OS is Windows? > > Benjamin Krajmalnik wrote: > > My Win

Re: [ADMIN] plpgsql debugger

2007-07-17 Thread Benjamin Krajmalnik
PostgreSQL Manager from EMS has one. I recommend getting their Studio product, which integrates all of their tools. Definitely worth the price. ---(end of broadcast)--- TIP 6: explain analyze is your friend

[ADMIN] Deadlock

2007-08-01 Thread Benjamin Krajmalnik
My aplogies - I forgot to set the subject of the problem I am having when I got lazy and used "reply". > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Benjamin Krajmalnik > Sent: Wednesday, August 01, 2007 11:32 AM &g

Re: [ADMIN] stracing a connection

2007-08-01 Thread Benjamin Krajmalnik
I have ascheduled pgAgent job which runs monthly executing a stored procedure which handles some partitoned tables. Essentially, it truncated the data in a given partitio and then it changes its rules so it will be ready to accept the data for its respective next cycle. The stored procedure foll

Re: [ADMIN] Deadlock

2007-08-01 Thread Benjamin Krajmalnik
In case you did not read my message, it started with "My apologies" becaue I made the mistake and noticed it. Please, do not try to lecture me. If you have something substanbtive to reply concerning the issue I am having, then by all means do reply. I did not know you were the self-proclaimed lis

[ADMIN] Executing external program from stored procedure

2007-10-04 Thread Benjamin Krajmalnik
Is there a way to execute an external program from within a stored procedure? In pl/pgsql it does not appear to be supported. Will pl/perl allow me to do so? A little background. I have a network monitoring platform which we developed. The collector has the capability of issuing a single query fo

Re: [ADMIN] Looking for an E/R tool for Postgres

2007-12-17 Thread Benjamin Krajmalnik
Toad Data Modeler > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Marco Antonio > Sent: Monday, December 17, 2007 2:02 PM > To: Mark Steben > Cc: pgsql-admin@postgresql.org > Subject: Re: [ADMIN] Looking for an E/R tool for Postgres > > On Dec 17,

Re: [TLM] [ADMIN] Trojan in distribution 8.2.5

2007-12-27 Thread Benjamin Krajmalnik
You have already posted this various times.. Have you checked with your AV provider that it is not a false positive? I do not think it is necessary for you to be posting this every day. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Al

[ADMIN] Strange client encoding issue

2008-01-16 Thread Benjamin Krajmalnik
I am encountering a very strange client encoding issue. >From the logs on the server, I am getting the following: canopy02# tail postgresql-2008-01-16_00.log 2008-01-16 15:20:03 ESTERROR: conversion between latin9 and LATIN1 is not supported 2008-01-16 15:20:03 ESTSTATEMENT: set client_enco

Re: [ADMIN] Strange client encoding issue

2008-01-16 Thread Benjamin Krajmalnik
. > > Best regards > Ivo > > Am Mittwoch, 16. Januar 2008 21.30:42 schrieb Benjamin Krajmalnik: > > I am encountering a very strange client encoding issue. > > From the logs on the server, I am getting the following: > > > > canopy02# tail postgresql-2008-01-

Re: [ADMIN] Strange client encoding issue

2008-01-16 Thread Benjamin Krajmalnik
implicitly? > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Benjamin Krajmalnik > Sent: Wednesday, January 16, 2008 3:45 PM > To: Ivo Rossacher; pgsql-admin@postgresql.org > Subject: Re: [ADMIN] Strange client encoding issue &g

Re: [ADMIN] connection problems

2008-04-01 Thread Benjamin Krajmalnik
Another option on Windows would be to get the Sysinternals utilities, and use tcpview, which is superior to netstat. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Melissa Peterson Sent: Tuesday, April 01, 2008 10:29 AM T

Re: [ADMIN] Windows max concurrent connections

2008-04-03 Thread Benjamin Krajmalnik
Assuming he is using ODBC to connect, I do not believe the current ODBC driver supports connection pooling. My experience was that it did not. I posted a question on the ODBC list, but have not yet received a reply. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTEC

[ADMIN] Change in behavior of string concat operator

2008-12-06 Thread Benjamin Krajmalnik
I just migrated from 8.1 to 8.3, running on FreeBSD 7.0 amd64. Running 8.3.5 I have a query concatenating 3 columns to create a hash. userid is a numeric(38,0) field, accountno is an integer, and requestdate is a date. Under 8.1, Select userid || accountno || requestdate::date as newcolumn fro

Re: [ADMIN] Change in behavior of string concat operator

2008-12-08 Thread Benjamin Krajmalnik
[EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Milen A. Radev > Sent: Saturday, December 06, 2008 12:49 PM > To: pgsql-admin@postgresql.org > Subject: Re: [ADMIN] Change in behavior of string concat operator > > Benjamin Krajmalnik написа: > > I just migrated from 8.1

Re: [ADMIN] Change in behavior of string concat operator

2008-12-08 Thread Benjamin Krajmalnik
Thanks, Stephan and Milen. Everything is clear now. I had a change in the behavior moving from 8.1 to 8.3, and the automatic typecasting prior to 8.3 blurred the intended behavior as per the documentation. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your s

Re: [ADMIN] Totally inappropriate by-line for a major representative of this organization

2009-02-03 Thread Benjamin Krajmalnik
He must be a card carrying member of the ACLU, and now he thinks he is the G_d of these lists :) > -Original Message- > From: pgsql-admin-ow...@postgresql.org > [mailto:pgsql-admin-ow...@postgresql.org] On Behalf Of Joshua D. Drake > Sent: Monday, February 02, 2009 4:22 PM > To: Scott Ru

Re: [ADMIN] Totally inappropriate by-line for a major representative of this organization

2009-02-03 Thread Benjamin Krajmalnik
So what if he voices his beliefs. This PC BS is over the top. If you are so offended by his by-line, to the extent that you want to remove yourself fomr the mailing lists, then by all means do so. I am not a Christian (I am Jewish, so I guess that puts me one rung below Bruce), and am definitely no

Re: [ADMIN] Statistical tracking issue

2009-07-03 Thread Benjamin Krajmalnik
Never mind. I restarted PostgreSQL and stats are now collecting again. From: Benjamin Krajmalnik Sent: Friday, July 03, 2009 3:23 PM To: pgsql-admin@postgresql.org Subject: Statistical tracking issue I am running 8.3.7 on FreeBSD 7.0/amd64. It appears that at some point about 2 weeks

[ADMIN] Statistical tracking issue

2009-07-03 Thread Benjamin Krajmalnik
I am running 8.3.7 on FreeBSD 7.0/amd64. It appears that at some point about 2 weeks ago statistics tracking ceased. I have the following query which I use to track cache hits, and it is not being updated: SELECT pg_stat_database.datname, pg_stat_database.blks_read, pg_stat_database.blks_hit,

[ADMIN] Off-topic - Hardware recommendation

2009-07-29 Thread Benjamin Krajmalnik
I apologize for the slightly off-topic question. I will be building a new PostgreSQL server running 8.4 on FreeBSD 7.2 64-bit. The nature of the application dictates that we use shared storage to provide high availability (in case one of the servers has a failure). After doing some research in t

[ADMIN] Error in creating the backend query

2009-07-29 Thread Benjamin Krajmalnik
PostgreSQL 8.3.7 running on FreeBSD. The following query: update tblksalerts set cleartime = x_cleartime, laststatusid = x_statusid, lastreplytext = x_replytxt, lasttesttime = x_testtime

Re: [ADMIN] Error in creating the backend query

2009-07-29 Thread Benjamin Krajmalnik
I tried it with both on and off, and it did not make a difference. > -Original Message- > From: Alvaro Herrera [mailto:alvhe...@commandprompt.com] > Sent: Wednesday, July 29, 2009 3:20 PM > To: Benjamin Krajmalnik > Cc: pgsql-admin@postgresql.org > Subject: Re: [ADMIN]

Re: [ADMIN] Error in creating the backend query

2009-07-29 Thread Benjamin Krajmalnik
e, timestamp without time zone, integer, character varying, character varying, integer) OWNER TO postgres; > -Original Message- > From: Tom Lane [mailto:t...@sss.pgh.pa.us] > Sent: Wednesday, July 29, 2009 3:31 PM > To: Alvaro Herrera > Cc: Benjamin Krajmalnik; pg

Re: [ADMIN] Error in creating the backend query

2009-07-29 Thread Benjamin Krajmalnik
e worked around this by setting the variable to a blank string if the value passed to the stored procedure is a null value, but there definitely appears to be an issue in there. > -Original Message- > From: Tom Lane [mailto:t...@sss.pgh.pa.us] > Sent: Wednesday, July 29, 2009 4:43

Re: [ADMIN] Error in creating the backend query

2009-07-31 Thread Benjamin Krajmalnik
consider this closed unless I see it occur again. Sorry for the false alarm. > -Original Message- > From: pgsql-admin-ow...@postgresql.org [mailto:pgsql-admin- > ow...@postgresql.org] On Behalf Of Benjamin Krajmalnik > Sent: Wednesday, July 29, 2009 5:00 PM > To: Tom Lane >

[ADMIN] Autovacuum: found orphan tenp table

2009-08-07 Thread Benjamin Krajmalnik
I recently built a test server running 8.4/FreeBSD 7.2/amd64, built from the ports. I am seeing the following message in the logs: "autovacuum: found orphan table "pg_temp_1""."pga_tmp_zombies" in database "postgres" "autovacuum: found orphan table "pg_temp_2""."pga_tmp_zombies" in databas

[ADMIN] Max connections

2009-08-10 Thread Benjamin Krajmalnik
I am setting up a test environment to simulate a very high load. We have a server farm which is receiving data (cold be thousands of simultaneous users posting data). I currently have max_connections set to 500 and the server is starting ok. If I try to increase the max_connections to 1000, the

Re: [ADMIN] Max connections

2009-08-10 Thread Benjamin Krajmalnik
Yes, I had, but apparently the values were not high enough to accommodate that many connections. I retuned the IPC kernel setting, and now it appears to be running fine. Thanks. From: Shoaib Mir [mailto:shoaib...@gmail.com] Sent: Monday, August 10, 2009 11:51 PM To: Benjamin Krajmalnik

Re: [ADMIN] Max connections

2009-08-11 Thread Benjamin Krajmalnik
guidance. As always, thank you so much for your assistance. > -Original Message- > From: Tom Lane [mailto:t...@sss.pgh.pa.us] > Sent: Tuesday, August 11, 2009 7:54 AM > To: Benjamin Krajmalnik > Cc: pgsql-admin@postgresql.org > Subject: Re: [ADMIN] Max connecti

[ADMIN] Error when clustering a table

2009-12-14 Thread Benjamin Krajmalnik
I am trying to cluster a table for which vacuum full is not reducing its size. When I do so, I am getting the following error: ERROR: missing chunk number 0 for toast value 207869115 in pg_toast_145099 ** Error ** ERROR: missing chunk number 0 for toast value 207869115

Re: [ADMIN] Error when clustering a table

2009-12-14 Thread Benjamin Krajmalnik
": moved 495 row versions, truncated 4479 to 4457 pages DETAIL: CPU 0.00s/0.02u sec elapsed 0.02 sec. INFO: index "pg_toast_145099_index" now contains 117973 row versions in 343 pages DETAIL: 495 index row versions were removed. 0 index pages have been deleted, 0 are curre

Re: [ADMIN] Error when clustering a table

2009-12-14 Thread Benjamin Krajmalnik
Strange - seems to have sorted itself out. I turned off a scheduled vacuum of the table and within a few minutes I sorted itself out. I have reduced the frequency of the vacuuming task which is being carried out via pgagent. From: Benjamin Krajmalnik Sent: Monday, December 14, 2009 12:28

[ADMIN] Finetuning Autovacuum

2010-01-04 Thread Benjamin Krajmalnik
PostgreSQL 8.4/FreeBSD 7.2 amd64 I have a database which has 3 tables which get a very high level of activity (about 40 thousand updates per minute). The tables are getting quite bloated, since autovacuum is apparently not optimally configured (it is using the default settings). Anything I d

Re: [ADMIN] Finetuning Autovacuum

2010-01-04 Thread Benjamin Krajmalnik
ows; 9832 rows in sample, 48155 estimated total rowsTotal query runtime: 6937 ms. Any suggestions on how to better tune autovacuum, or alternatively do you recommend just running a vacuum analyze as a pgagent scheduled task? > -Original Message- > From: Scott Marlowe [mailto:scott

  1   2   >