Re: [GENERAL] append_array causes rapid growth according to pg_total_relation_size

2010-08-23 Thread Randall Smith
More information including a workaround. VACUUM ANALYZE is not freeing space after an array_append, but it does after replacing a specific element in the array. So if I do this: update array_big1 set chunk_ids = array_append(chunk_ids, '1') where id = 0; update array_big1 set chunk_ids[1] =

Re: [GENERAL] Npgsql Exception

2010-08-23 Thread Mike Christensen
Sorry, when I had emailed the NHibernate DL the exception was in the subject line. I forgot to copy the subject this time. The exception is: ERROR: 42704: unrecognized configuration parameter ssl_renegotiation_limit On Sun, Aug 22, 2010 at 8:54 PM, Mike Christensen m...@kitchenpc.com wrote:

Re: [GENERAL] getting list of columns from a query

2010-08-23 Thread c k
I am using PostgreSQL 8.4 on Fedora Linux 13 and using MS Access as the front end for our application. It is not the problem associated with MS Access. I got the some entries while searching for the said topic that Oracle provides such facility. DESCRIBE SELECT LIST which gives the details about

Re: [ADMIN] [GENERAL] getting list of columns from a query

2010-08-23 Thread Scott Marlowe
Isn't this provided in odbc by myQuery.columns? Is that not accessible to MSAccess?? On Mon, Aug 23, 2010 at 2:02 AM, c k shreeseva.learn...@gmail.com wrote: I am using PostgreSQL 8.4 on Fedora Linux 13 and using MS Access as the front end for our application. It is not the problem associated

[GENERAL] Sequence reset

2010-08-23 Thread SUNDAY A. OLUTAYO
How can I reset a sequence column due to deletion of some rolls? Sunday Olutayo Sadeeb Technologies Ltd -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] disappearing data

2010-08-23 Thread Garry Saddington
We have had a problem with postgresql 8.3 on a Windows server 2008. I wonder whether there has been any other experiences like this. We have connected to Potsgres from Zope via a Psycopg adapter and noticed that sometimes when data is inserted via a form in Zope, the data is available in Zope

Re: [GENERAL] Sequence reset

2010-08-23 Thread Raymond O'Donnell
On 23/08/2010 11:04, SUNDAY A. OLUTAYO wrote: How can I reset a sequence column due to deletion of some rolls? You can use the setval() function to set its value to whatever you like: http://www.postgresql.org/docs/8.4/static/functions-sequence.html HTH Ray. -- Raymond O'Donnell :: Galway

Re: [GENERAL] disappearing data

2010-08-23 Thread Magnus Hagander
On Mon, Aug 23, 2010 at 12:12, Garry Saddington ga...@schoolteachers.co.uk wrote: We have had a problem with postgresql 8.3 on a Windows server 2008. I wonder whether there has been any other experiences like this. We have connected to Potsgres from Zope via a Psycopg adapter and noticed that

Re: [GENERAL] Sequence reset

2010-08-23 Thread Scott Marlowe
On Mon, Aug 23, 2010 at 4:04 AM, SUNDAY A. OLUTAYO olut...@sadeeb.com wrote: How can I reset a sequence column due to deletion of some rolls? Note that a design of a column that holds the output of a sequence and can't handle gaps is pretty much broken. -- Sent via pgsql-general mailing list

Re: [GENERAL] disappearing data

2010-08-23 Thread Adrian Klaver
On Monday 23 August 2010 3:15:28 am Magnus Hagander wrote: On Mon, Aug 23, 2010 at 12:12, Garry Saddington I don't know anything about Zope, but it sounds like the db adapter opens a transaction and never commits it. Perhaps the previous version was working in autocommit mode by default, and

Re: [GENERAL] Massively Parallel transactioning?

2010-08-23 Thread Ivan Voras
On 08/19/10 20:19, Benjamin Smith wrote: On Wednesday, August 18, 2010 04:58:08 pm Joshua D. Drake wrote: Well if you are just using it for updates to the schema etc... you should only need to launch a single connection to each database to make those changes. And that's exactly the problem.

Re: [GENERAL] Sequence reset

2010-08-23 Thread Randall Smith
I can't tell what a roll is based on your question, but here is how to set a sequence to a specific value. SELECT setval('foo', 42); Next nextval will return 43 http://www.postgresql.org/docs/8.4/interactive/functions-sequence.html -Randall On Mon, 2010-08-23 at 05:04 -0500, SUNDAY

Re: [GENERAL] Npgsql Exception

2010-08-23 Thread Tom Lane
Mike Christensen m...@kitchenpc.com writes: Sorry, when I had emailed the NHibernate DL the exception was in the subject line. I forgot to copy the subject this time. The exception is: ERROR: 42704: unrecognized configuration parameter ssl_renegotiation_limit ssl_renegotiation_limit is a

[GENERAL] Tool to compare data between tables

2010-08-23 Thread akp geek
Hi all - Is there any open source tool available for postgres to compare data between 2 tables. Appreciate your help Regards

Re: [GENERAL] Sequence reset

2010-08-23 Thread Rikard Bosnjakovic
On Mon, Aug 23, 2010 at 12:04, SUNDAY A. OLUTAYO olut...@sadeeb.com wrote: How can I reset a sequence column due to deletion of some rolls? ALTER SEQUENCE sequence_name RESTART 1; -- - Rikard -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your

[GENERAL] ECPG threads

2010-08-23 Thread Leif Jensen
Hello guys, PostgreSQL 8.3.5. Compiled and installed on Slackware 10.2, kernel 2.6.15. We have a transaction based system that creates a new process every time a user connects (just fork()s, no exec()s). Each of these processes has several threads. Some database connections are

[GENERAL] IBATIS support for postgres cursors

2010-08-23 Thread Atul.Goel
Hi, Can cursors be returned to IBATIS. If so how. This is what I have written. parameterMap id= getUsersParam class=Map parameter property=results jdbcType=REF javaType=java.sql.ResultSet mode=OUT resultMap=allUsersResult/ parameter property=errors jdbcType=VARCHAR

Re: [GENERAL] Tool to compare data between tables

2010-08-23 Thread Arjen Nienhuis
http://phpsqldiff.sourceforge.net/ On Mon, Aug 23, 2010 at 4:32 PM, akp geek akpg...@gmail.com wrote: Hi all - Is there any open source tool available for postgres to compare data between 2 tables. Appreciate your help Regards

[GENERAL] Mammoth Replicator

2010-08-23 Thread Eliot Gable
Has anyone on this list (other than Command Prompt people) had any experience with Mammoth Replicator? If so, what are your thoughts / opinions of the system? Are there any drawbacks you can think of for using it verses something else? I like the fact that it is integrated into PostgreSQL, and I

Re: [GENERAL] Npgsql Exception

2010-08-23 Thread Francisco Figueiredo Jr.
Are you using Npgsql with NHibernate? We added an option to send this command when starting a connection. But the setting is inside a try catch error handler, so you aren't supposed to receive it. On my tests I couldn't reproduce the error. The only error we got about that was a user who had a

Re: [GENERAL] Npgsql Exception

2010-08-23 Thread Francisco Figueiredo Jr.
Whooops, I didn't check the message header... You can ignore my first question :) On Mon, Aug 23, 2010 at 15:56, Francisco Figueiredo Jr. franci...@npgsql.org wrote: Are you using Npgsql with NHibernate? We added an option to send this command when starting a connection. But the setting is

[GENERAL] pg_notify but no pg_listen?

2010-08-23 Thread A.M.
There is a new pg_notify function in pgsql 9.0 but no pg_listen equivalent? Why? It sure would be handy to pass quoted strings... Cheers, M -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription:

Re: [GENERAL] Warm Standby and resetting the primary as a standby

2010-08-23 Thread Bruce Momjian
Yaroslav Tykhiy wrote: On Sat, Aug 21, 2010 at 12:45:44PM -0400, Bruce Momjian wrote: Derrick Rice wrote: I've been reading up on the documentation for WAL shipping and warm standby configuration. One concern that I have (a common one, I'm sure) is that it seems that after bringing

Re: [GENERAL] Warm Standby and resetting the primary as a standby

2010-08-23 Thread Derrick Rice
On Mon, Aug 23, 2010 at 5:45 PM, Bruce Momjian br...@momjian.us wrote: Sorry, I don't know. I think the timelines are only there for safety if you have to fall back to the previous timeline, and to prevent timeline mixing. Thanks for the helpful answers. Two follow up questions which, if

Re: [GENERAL] Warm Standby and resetting the primary as a standby

2010-08-23 Thread Bruce Momjian
Derrick Rice wrote: On Mon, Aug 23, 2010 at 5:45 PM, Bruce Momjian br...@momjian.us wrote: Sorry, I don't know. I think the timelines are only there for safety if you have to fall back to the previous timeline, and to prevent timeline mixing. Thanks for the helpful answers.

Re: [GENERAL] pg_notify but no pg_listen?

2010-08-23 Thread Bruce Momjian
A.M. wrote: There is a new pg_notify function in pgsql 9.0 but no pg_listen equivalent? Why? It sure would be handy to pass quoted strings... Notify sends the notify; there is no place to send a 'listen' payload. -- Bruce Momjian br...@momjian.ushttp://momjian.us EnterpriseDB

[GENERAL] select from pipe-delimited field

2010-08-23 Thread san man
Hello all, I am trying to do a SELECT operation with a WHERE condition. However, the column with which I am trying to do the comparison has several values which are pipe-delimited. I want to return a match(true) if the WHERE condition matches any of the bar-delimited values. For example, SELECT

Re: [GENERAL] select from pipe-delimited field

2010-08-23 Thread David Fetter
On Mon, Aug 23, 2010 at 05:44:09PM -0500, san man wrote: Hello all, I am trying to do a SELECT operation with a WHERE condition. However, the column with which I am trying to do the comparison has several values which are pipe-delimited. I want to return a match(true) if the WHERE condition

Re: [GENERAL] select from pipe-delimited field

2010-08-23 Thread Arjen Nienhuis
On Tue, Aug 24, 2010 at 12:44 AM, san man neelakas...@gmail.com wrote: Hello all, I am trying to do a SELECT operation with a WHERE condition. However, the column with which I am trying to do the comparison has several values which are pipe-delimited. I want to return a match(true) if the

Re: [GENERAL] select from pipe-delimited field

2010-08-23 Thread san man
Thanks for the replies. David, I would have normalized it to 2 or more tables, but the number of bar-delimited are not fixed and as new data are added the maximum number of these values may change. Also, the problem with like I think is that matching is not strict and thus might give spurious

Re: [GENERAL] Npgsql Exception

2010-08-23 Thread Mike Christensen
Sounds good, I think I'll take Tom's advice.. Actually I'm planning on waiting for the 9.0 release to upgrade, so in theory that should just fix everything.. This only happens if I break on all exceptions, which I usually have turned off.. Thanks! Mike On Mon, Aug 23, 2010 at 11:56 AM,

Re: [GENERAL] Npgsql Exception

2010-08-23 Thread Mike Christensen
BTW, version is: 'PostgreSQL 8.3.4, compiled by Visual C++ build 1400' I don't have any such setting referenced in any .conf file. So I guess NHibernate tries to set this setting, assuming I have a more recent version of PG. If that's the case, it'll go away when I upgrade.. Mike On Mon, Aug

Re: [GENERAL] Warm Standby and resetting the primary as a standby

2010-08-23 Thread Tom Lane
Derrick Rice derrick.r...@gmail.com writes: Is it possible to interpret the requested file and ignore the timeline digits and provide a file from some other timeline? Or is the timeline mean more than just the file name? Sounds dangerous as can be to me. The point of the timeline stuff is

Re: [GENERAL] IBATIS support for postgres cursors

2010-08-23 Thread Craig Ringer
On 08/24/2010 12:11 AM, atul.g...@globaldatapoint.com wrote: Hi, Can cursors be returned to IBATIS. If so how. This is what I have written. parameterMap id=// /getUsersParam/ class=/Map/ parameter property=/results/ jdbcType=/REF/ javaType=/java.sql.ResultSet/ mode=/OUT/

Re: [GENERAL] pg_notify but no pg_listen?

2010-08-23 Thread Craig Ringer
On 08/24/2010 06:43 AM, Bruce Momjian wrote: A.M. wrote: There is a new pg_notify function in pgsql 9.0 but no pg_listen equivalent? Why? It sure would be handy to pass quoted strings... Notify sends the notify; there is no place to send a 'listen' payload. I assume what they want is the

Re: [GENERAL] select from pipe-delimited field

2010-08-23 Thread Craig Ringer
On 08/24/2010 07:07 AM, san man wrote: Thanks for the replies. David, I would have normalized it to 2 or more tables, but the number of bar-delimited are not fixed and as new data are added the maximum number of these values may change. Also, the problem with like I think is that matching is not

Re: [GENERAL] pg_notify but no pg_listen?

2010-08-23 Thread A.M.
On Aug 23, 2010, at 10:18 PM, Craig Ringer wrote: On 08/24/2010 06:43 AM, Bruce Momjian wrote: A.M. wrote: There is a new pg_notify function in pgsql 9.0 but no pg_listen equivalent? Why? It sure would be handy to pass quoted strings... Notify sends the notify; there is no place to send

Re: [GENERAL] pg_notify but no pg_listen?

2010-08-23 Thread Craig Ringer
On 24/08/2010 11:06 AM, A.M. wrote: On Aug 23, 2010, at 10:18 PM, Craig Ringer wrote: On 08/24/2010 06:43 AM, Bruce Momjian wrote: A.M. wrote: There is a new pg_notify function in pgsql 9.0 but no pg_listen equivalent? Why? It sure would be handy to pass quoted strings... Notify sends the

Re: [GENERAL] select from pipe-delimited field

2010-08-23 Thread Scott Marlowe
On Mon, Aug 23, 2010 at 8:21 PM, Craig Ringer cr...@postnewspapers.com.au wrote: On 08/24/2010 07:07 AM, san man wrote: Thanks for the replies. David, I would have normalized it to 2 or more tables, but the number of bar-delimited are not fixed and as new data are added the maximum number of