Re: [GENERAL] is max connections in a database table somewhere

2011-08-11 Thread Geoffrey Myers
Greg Smith wrote: On 08/10/2011 02:46 PM, Geoffrey Myers wrote: Is the max connections value in a system table somewhere? If you intend to do anything with the value you probably want one of these forms: SELECT CAST(current_setting('max_connections') AS integer); SELECT CAST(

Re: [GENERAL] Is max connections in a table somewhere?

2011-08-11 Thread Geoffrey Myers
Adrian Klaver wrote: On Wednesday, August 10, 2011 11:47:25 am Geoffrey Myers wrote: Is max connections in any table in the database I can access? SELECT current_setting('max_connections'); current_setting - 100 Thanks for all the responses folks. Obviousl

Re: [GENERAL] Is max connections in a table somewhere?

2011-08-10 Thread Geoffrey Myers
Scott Marlowe wrote: On Wed, Aug 10, 2011 at 12:47 PM, Geoffrey Myers wrote: Is max connections in any table in the database I can access? No it's in the postgresql.conf file, which is in various places depending on how pg was installed. for debian / ubuntu it's in /etc/postgresq

[GENERAL] is max connections in a database table somewhere

2011-08-10 Thread Geoffrey Myers
Is the max connections value in a system table somewhere? Thanks. -- Geoffrey Myers Myers Consulting Inc. 770.592.1651 -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] Is max connections in a table somewhere?

2011-08-10 Thread Geoffrey Myers
Is max connections in any table in the database I can access? -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of taking care of them." - Thomas Jefferson -- Sent via pgs

Re: [GENERAL] running out of oids

2011-08-03 Thread Geoffrey Myers
Merlin Moncure wrote: On Wed, Aug 3, 2011 at 2:41 PM, Geoffrey Myers wrote: Am I correct in assuming that the 'running out of oids' issue was resolved with a design change within Postgresql? not exactly -- for quite some time now the use of oids in user tables has been discour

[GENERAL] running out of oids

2011-08-03 Thread Geoffrey Myers
Am I correct in assuming that the 'running out of oids' issue was resolved with a design change within Postgresql? -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of taki

Re: [GENERAL] out of memory error

2011-07-05 Thread Geoffrey Myers
Tom Lane wrote: Geoffrey Myers writes: Geoffrey Myers wrote: out of memory for query result One other note that is bothering me. There is no reference in the log regarding the out of memory error. Should that not also show up in the associated database log? Not if it's a client

Re: [GENERAL] out of memory error

2011-07-05 Thread Geoffrey Myers
Craig Ringer wrote: On 3/07/2011 6:00 PM, Geoffrey Myers wrote: out of memory for query result How is this possible? Resource limits? Could this message be generated because of shared memory issues? The odd thing is the error was generated by a user process, but there is no reference to

Re: [GENERAL] out of memory error

2011-07-05 Thread Geoffrey Myers
Geoffrey Myers wrote: We have a process that we successfully ran on virtually identical databases. The process completed fine on a machine with 8 gig of memory. The process fails when run on another machine that has 16 gig of memory with the following error: out of memory for query result

Re: [GENERAL] out of memory error

2011-07-05 Thread Geoffrey Myers
One other note, there is no error in the postgres log for this database. I would have expected to find an error there. -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of taking ca

Re: [GENERAL] out of memory error

2011-07-05 Thread Geoffrey Myers
Craig Ringer wrote: On 3/07/2011 6:00 PM, Geoffrey Myers wrote: out of memory for query result How is this possible? Resource limits? Could this message be generated because of shared memory issues? The odd thing is the error was generated by a user process, but there is no reference

Re: [GENERAL] out of memory error

2011-07-05 Thread Geoffrey Myers
Alban Hertroys wrote: On 3 Jul 2011, at 12:00, Geoffrey Myers wrote: We have a process that we successfully ran on virtually identical databases. The process completed fine on a machine with 8 gig of memory. The process fails when run on another machine that has 16 gig of memory with the

[GENERAL] out of memory error

2011-07-03 Thread Geoffrey Myers
disk space. Any clues would be appreciated. -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of taking care of them." - Thomas Jefferson -- Sent via pgsql-general mailing list

[GENERAL] proper regex_replace() syntax

2011-06-01 Thread Geoffrey Myers
do? That is, replace the same character in multiple records using regex_replace() ? In reality, we are trying to change characters like the 1/2 character to the three characters '1/2'. Thanks for any assistance. -- Until later, Geoffrey "I predict future happiness for America

[GENERAL] Connecting to Postgres using Windows 7

2011-05-25 Thread Geoffrey Becker
I'm relatively new to postgres. I've got a Visual Basic (VB) application that i would like to connect to a Postgres database using ODBC . Both the VB application and postgres are on my laptop and both work beautifully independent of each other. Trouble is, I have a windows 7 64bit OS and the

[GENERAL] Connecting to Postgres using Windows 7

2011-05-18 Thread Geoffrey Becker
I'm relatively new to postgres. I've got a Visual Basic (VB) application that i would like to connect to a Postgres database using ODBC . Both the VB application and postgres are on my laptop and both work beautifully independent of each other. Trouble is, I have a windows 7 64bit OS and the

Re: [GENERAL] converting databases form SQL_ASCII to UTF8

2011-05-03 Thread Geoffrey Myers
Jasen Betts wrote: On 2011-04-22, Geoffrey Myers wrote: Vick Khera wrote: On Fri, Apr 22, 2011 at 11:00 AM, Geoffrey Myers mailto:li...@serioustechnology.com>> wrote: Here's our problem. We planned on moving databases a few at a time. Problem is, there is a process that

Re: [GENERAL] converting databases form SQL_ASCII to UTF8

2011-04-22 Thread Geoffrey Myers
Vick Khera wrote: On Fri, Apr 22, 2011 at 11:00 AM, Geoffrey Myers mailto:li...@serioustechnology.com>> wrote: Here's our problem. We planned on moving databases a few at a time. Problem is, there is a process that pushes data from one database to another. If t

[GENERAL] converting databases form SQL_ASCII to UTF8

2011-04-22 Thread Geoffrey Myers
characters mentioned above, the process fails. So, now the question is, is this effort even worth our effort? What is the harm in leaving our databases SQL_ASCII encoded? Thanks for any insights. -- Until later, Geoffrey "I predict future happiness for America if they can prevent the

[GENERAL] UTF8 conversion revisited

2011-03-29 Thread Geoffrey Myers
: [archiver (db)] Error from TOC entry 5246; 0 4978675 TABLE DATA cust postgres pg_restore: [archiver (db)] COPY failed: ERROR: invalid byte sequence for encoding "UTF8": 0xbd As I see it, the perl code above should catch this '0xbd' character, but somehow it is finding it's

Re: [GENERAL] error messages during restore

2011-03-22 Thread Geoffrey Myers
Tom Lane wrote: Geoffrey Myers writes: So we are in the process of converting our databases from SQL_ASCII to UTF8. If a particular row won't import because of the encoding issue we get an error like: pg_restore: [archiver (db)] Error from TOC entry 5317; 0 1266711 TABLE DATA

[GENERAL] error messages during restore

2011-03-18 Thread Geoffrey Myers
mp makes it difficult to view that line. Is there a way to view that data line without converting this dump to a text dump? All I'd like to do is know which column in the table caused the problem so I could apply my fix to that particular column. -- Until later, Geoffrey "I predict f

Re: [GENERAL] Covert database from ASCII to UTF-8

2011-02-25 Thread Geoffrey Myers
friendly?' What about some sort of wal log shipping replication? WAL Log shipping won't help. Thanks & Regards, Vibhor Kumar -- Geoffrey Myers Myers Consulting Inc. 770.592.1651 -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make

Re: [GENERAL] disable triggers using psql

2011-02-22 Thread Geoffrey Myers
6714964AC8 -BEGIN PGP SIGNATURE- iEYEAREDAAYFAk1iy74ACgkQvJuQZxSWSsgWQACgrxKDvN/yCZD5GZJvlqFMyyIC 9mwAnjOMJ9QDRa3IoiBCvaS9mT5sMR6f =JYCs -END PGP SIGNATURE- -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of

Re: [GENERAL] disable triggers using psql

2011-02-21 Thread Geoffrey Myers
3sxkLkpj ghIAnRe02LCuyyRlyzvKZ67QCYUyfPzC =H9Wb -END PGP SIGNATURE- -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of taking care of them." - Thomas Jefferson -- Sent

Re: [GENERAL] disable triggers using psql

2011-02-21 Thread Geoffrey Myers
N PGP SIGNATURE- iEYEAREDAAYFAk1ew9MACgkQvJuQZxSWSshETwCg2oEEicHhokORuQRl3sxkLkpj ghIAnRe02LCuyyRlyzvKZ67QCYUyfPzC =H9Wb -END PGP SIGNATURE- -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the peopl

Re: [GENERAL] disable triggers using psql

2011-02-18 Thread Geoffrey Myers
SIGNATURE- -- Geoffrey Myers Myers Consulting Inc. 770.592.1651 -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] disable triggers using psql

2011-02-18 Thread Geoffrey Myers
session_replication_role = replica; I'm still getting the errors. If it doesn't belong at the beginning of this process, I'm not exactly sure where it should go. -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wastin

Re: [GENERAL] disable triggers using psql

2011-02-18 Thread Geoffrey Myers
AREDAAYFAk1ehJEACgkQvJuQZxSWSsj/5gCgjsQa+nzZz26xQ7c70Bxl5Hs3 AuUAn1uD7MY2BtGR7usl45pC3Yv2pqVS =mLCm -END PGP SIGNATURE- -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of taking c

Re: [GENERAL] disable triggers using psql

2011-02-18 Thread Geoffrey Myers
F6AB8F79407E94445B4BC9B906714964AC8 -BEGIN PGP SIGNATURE- iEYEAREDAAYFAk1d360ACgkQvJuQZxSWSsidCQCfTnQxp5w6psa3C9NREX0ecZ+j Ft0An2JKofuxVJNwxhVkh4NBTJU3Xcom =fLDa -END PGP SIGNATURE- -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wast

Re: [GENERAL] disable triggers using psql

2011-02-17 Thread Geoffrey Myers
201102171551 http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 -BEGIN PGP SIGNATURE- iEYEAREDAAYFAk1diwUACgkQvJuQZxSWSshcPgCdGuHIe4bINl/BmoKW89YmQscD IdAAnA8bwbzmMKssCga9G0dpSh1GopzD =khQx -END PGP SIGNATURE- -- Geoffrey Myers Myers Consulting Inc. 770.592

Re: [GENERAL] disable triggers using psql

2011-02-17 Thread Geoffrey Myers
//biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 -BEGIN PGP SIGNATURE- iEYEAREDAAYFAk1dpvQACgkQvJuQZxSWSsjvrgCgmiITSLnGyrBunVZTScc4HKvz Y3IAn1sYG4/BdM6XJpBAVMz6lU1WfUVH =XZcQ -END PGP SIGNATURE- -- Geoffrey Myers Myers Consulting Inc. 770.592.1651 -- Sent via pgsql-general mailing list (pgsql-genera

Re: [GENERAL] disable triggers using psql

2011-02-17 Thread Geoffrey Myers
lock psql:test.sql:17: ERROR: current transaction is aborted, commands ignored until end of transaction block ROLLBACK -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of

Re: [GENERAL] disable triggers using psql

2011-02-17 Thread Geoffrey Myers
2529DF6AB8F79407E94445B4BC9B906714964AC8 -BEGIN PGP SIGNATURE- iEYEAREDAAYFAk1diwUACgkQvJuQZxSWSshcPgCdGuHIe4bINl/BmoKW89YmQscD IdAAnA8bwbzmMKssCga9G0dpSh1GopzD =khQx -END PGP SIGNATURE- -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the lab

Re: [GENERAL] disable triggers using psql

2011-02-17 Thread Geoffrey Myers
xksXzk =f9co -END PGP SIGNATURE----- -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of taking care of them." - Thomas Jefferson -- Sent via pgsql-general mailing list (pg

Re: [GENERAL] disable triggers using psql

2011-02-17 Thread Geoffrey Myers
hen a table is built using pg_restore all the data is loaded into all tables BEFORE any constraints are created. I believe that if you did a data-only dump from pg_dump you would have the same integrity problems. Yes. A -- Until later, Geoffrey "I predict future happiness for Americ

[GENERAL] disable triggers using psql

2011-02-16 Thread Geoffrey Myers
get around the data integrity issue. Is there a way to resolve this issue with the psql loading approach? -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of taking care of them."

Re: [GENERAL] finding bogus UTF-8

2011-02-15 Thread Geoffrey Myers
Vick Khera wrote: On Tue, Feb 15, 2011 at 11:09 AM, Geoffrey Myers wrote: comments would be appreciated. If all you're doing is filtering stdin to stdout and deleting a range of characters, it seems that tr would be a faster tool: cat foo.txt | tr -d '\000-\008\013-\037\177-\

Re: [GENERAL] finding bogus UTF-8

2011-02-15 Thread Geoffrey Myers
values to decimal values at http://www.asciitable.com/ while (<>) { $_ =~ s/(.)/((ord($1) >= 0) && (ord($1) <= 8)) || ((ord($1) >= 11) && (ord($1) <= 31)) || ((ord($1) >= 127)) ?"": $1/egs; print; } comments would be apprec

[GENERAL] plsql question

2011-02-10 Thread Geoffrey Myers
I am trying to write a plsql routine that will delete a range of characters based on their octal or hexadecimal values. Something like the 'tr' shell command will do: cat file| tr -d ['\177'-'\377'] Can't seem to figure this one out. Pointers would be app

Re: [GENERAL] error while trying to change the database encoding on a database

2011-01-24 Thread Geoffrey Myers
Adrian Klaver wrote: On 01/24/2011 09:16 AM, Geoffrey Myers wrote: We hope to identify the characters and fix them in the existing database, then convert. It appears to be very limited, but it would help if there was some way to identify these characters outside of simply doing the reload of

Re: [GENERAL] error while trying to change the database encoding on a database

2011-01-24 Thread Geoffrey Myers
Adrian Klaver wrote: On Monday 24 January 2011 8:06:38 am Geoffrey Myers wrote: Adrian Klaver wrote: On Monday 24 January 2011 7:57:52 am Geoffrey Myers wrote: Adrian Klaver wrote: On Monday 24 January 2011 6:38:55 am Geoffrey Myers wrote: We need to change the database encoding on our

Re: [GENERAL] error while trying to change the database encoding on a database

2011-01-24 Thread Geoffrey Myers
Adrian Klaver wrote: On Monday 24 January 2011 7:57:52 am Geoffrey Myers wrote: Adrian Klaver wrote: On Monday 24 January 2011 6:38:55 am Geoffrey Myers wrote: We need to change the database encoding on our databases as they were created with the wrong encoding. They were created as

Re: [GENERAL] error while trying to change the database encoding on a database

2011-01-24 Thread Geoffrey Myers
Adrian Klaver wrote: On Monday 24 January 2011 6:38:55 am Geoffrey Myers wrote: We need to change the database encoding on our databases as they were created with the wrong encoding. They were created as SQL_ASCII and we are changing them to UTF8. When testing this Friday, I received the

Re: [GENERAL] searching for characters via the hexidecimal value

2011-01-24 Thread Geoffrey Myers
x27; is your hexadecimal character value. Be sure to read and understand everything you can find about encodings; and make sure the hexadecimal value you are searching for is from the same encoding. Best wishes, Harald On Mon, Jan 24, 2011 at 16:00, Geoffrey Myers mailto:li...@serioustechnolo

[GENERAL] error while trying to change the database encoding on a database

2011-01-24 Thread Geoffrey Myers
, which is controlled by "client_encoding". CONTEXT: COPY cust, line 778 Is there any easy way to figure out which record caused this error? Thanks. -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the peo

[GENERAL] searching for characters via the hexidecimal value

2011-01-24 Thread Geoffrey Myers
Is there a way to search for a character in the database by the hexidecimal value of that character? -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of taking care of them."

Re: [GENERAL] Pitr

2010-12-27 Thread Geoffrey Myers
Patience is my friend. No transactions so no archiving. Waiting long enough produced results. Sorry for the noise. -- Later, Geoffrey Sent from my iPhone On Dec 27, 2010, at 3:18 PM, Geoffrey Myers wrote: > Set up wal shipping on postgresql 8.3.9 and rhel 5.5. When I start the > post

[GENERAL] Pitr

2010-12-27 Thread Geoffrey Myers
, Geoffrey Sent from my iPhone -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] pitr question

2010-10-13 Thread Geoffrey Myers
On 10/13/2010 11:30 AM, zhong ming wu wrote: On Wed, Oct 13, 2010 at 11:17 AM, Geoffrey Myers mailto:li...@serioustechnology.com>> wrote: > Excuse the ignorance, but I see the following in the docs: > > 'In any case the hardware architecture must be the same — shipping fr

[GENERAL] pitr question

2010-10-13 Thread Geoffrey Myers
to 64 bit hardware, where one machine is running a 32 bit OS and the other is running a 64 bit OS? Further: Say 32 bit hardware and 64 bit hardware, where both are running a 32 bit OS? Specifically speaking of RHEL. Thanks. -- Until later, Geoffrey "I predict future happiness for Amer

Re: [GENERAL] locating cities within a radius of another

2010-07-22 Thread Geoffrey
Oliver Kohll - Mailing Lists wrote: On 22 Jul 2010, at 12:57, Geoffrey wrote: For completeness, the earthdistance module also provides the distance between two lat/longs, the point<@>point syntax is simple to use: http://www.postgresql.org/docs/8.3/static/earthdistance.html Disgreg

Re: [GENERAL] locating cities within a radius of another

2010-07-22 Thread Geoffrey
for point <@> point from ll_to_earth(). Regards Oliver Kohll oli...@agilebase.co.uk <mailto:oli...@agilebase.co.uk> / +44(0)7814 828608 / skype:okohll www.agilebase.co.uk <http://www.agilebase.co.uk> - software -- Until later, Geoffrey "I predict future ha

Re: [GENERAL] locating cities within a radius of another

2010-07-22 Thread Geoffrey
s). You might need to add explicit type casts. What am I missing??? -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of taking care of them." - Thomas Jefferson -- Sent via pgsq

Re: [GENERAL] locating cities within a radius of another

2010-07-22 Thread Geoffrey
t earth()' works fine. Regards Oliver Kohll oli...@agilebase.co.uk <mailto:oli...@agilebase.co.uk> / +44(0)7814 828608 / skype:okohll www.agilebase.co.uk <http://www.agilebase.co.uk> - software -- Until later, Geoffrey "I predict future happiness for America if they ca

[GENERAL] locating cities within a radius of another

2010-07-21 Thread Geoffrey
at a different approach? Thanks for any suggestions or RTFM pointers. -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of taking care of them." - Thomas Jefferson -- Sent vi

Re: [GENERAL] pgpool-II (max_pool and num_init_children)

2010-07-02 Thread Geoffrey
Guillaume Lelarge wrote: Le 02/07/2010 15:46, Geoffrey a écrit : Tatsuo Ishii wrote: I'm trying to get a handle on sane values for these two parameters. I assume that they should somehow correlate to my existing max_connections in my postgresql.conf file. Anyone using pgpool-II ca

Re: [GENERAL] pgpool-II (max_pool and num_init_children)

2010-07-02 Thread Geoffrey
ncelation. I don't believe we'll have frequent query cancellations. -- Tatsuo Ishii SRA OSS, Inc. Japan English: http://www.sraoss.co.jp/index_en.php Japanese: http://www.sraoss.co.jp -- Until later, Geoffrey "I predict future happiness for America if they can prevent the gove

[GENERAL] pgpool-II (max_pool and num_init_children)

2010-07-02 Thread Geoffrey
ant verses how many cached connections you have, but not sure how to properly assess this issue. (I've tried posting to the pgpool list, but it's apparently unavailable at this time) -- Until later, Geoffrey "I predict future happiness for America if they can prevent the gove

[GENERAL] reloading dump produces errors

2010-06-30 Thread Geoffrey
g the '-i' option be safe in this case? -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of taking care of them." - Thomas Jefferson -- Sent via pgsql-general ma

Re: [GENERAL] dropdb weirdness

2010-06-29 Thread Geoffrey
Tom Lane wrote: Adrian Klaver writes: On Tuesday 29 June 2010 1:04:27 pm Geoffrey wrote: dropdb: could not connect to database postgres: FATAL: database "postgres" does not exist Why is it not 'seeing' the database name I'm passing to it? Why is it trying to drop

[GENERAL] dropdb weirdness

2010-06-29 Thread Geoffrey
stgres?? -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of taking care of them." - Thomas Jefferson -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make

Re: [GENERAL] weird initdb output

2010-06-28 Thread Geoffrey
Tom Lane wrote: Geoffrey writes: I wrote a script that creates a new database from an existing backup. Works great on my machine. Another user tries to use it and sees the following output from initdb: could not change directory to "/root" The files belonging to this database s

[GENERAL] weird initdb output

2010-06-28 Thread Geoffrey Myers
ostgres". This user must also own the server process. . . Why is it trying to change directory to /root??? Running as the postgres user. Any assistance would be appreciated. -- Geoffrey Myers Myers Consulting Inc. 770.592.1651 -- Sent via pgsql-general mailing list (pgsql-general@pos

[GENERAL] weird initdb output

2010-06-28 Thread Geoffrey
ostgres". This user must also own the server process. . . Why is it trying to change directory to /root??? Running as the postgres user. Any assistance would be appreciated. -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from

Re: [GENERAL] pgpool

2010-06-22 Thread Geoffrey
priority users have a larger connection pool. Is there a problem with using connection pooling and traditional connections to connect to the same database? -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the p

Re: [GENERAL] pgpool

2010-06-21 Thread Geoffrey
Scott Marlowe wrote: On Mon, Jun 21, 2010 at 2:42 PM, Geoffrey wrote: Scott Marlowe wrote: On Mon, Jun 21, 2010 at 1:45 PM, Geoffrey wrote: John R Pierce wrote: On 06/21/10 5:37 AM, Geoffrey wrote: So I've got 13 different databases on 13 different postmasters, now does pgpool know

Re: [GENERAL] pgpool

2010-06-21 Thread Geoffrey
Scott Marlowe wrote: On Mon, Jun 21, 2010 at 1:45 PM, Geoffrey wrote: John R Pierce wrote: On 06/21/10 5:37 AM, Geoffrey wrote: So I've got 13 different databases on 13 different postmasters, now does pgpool know which databases I'm trying to connect to? you would need 13

Re: [GENERAL] pgpool

2010-06-21 Thread Geoffrey
John R Pierce wrote: On 06/21/10 5:37 AM, Geoffrey wrote: So I've got 13 different databases on 13 different postmasters, now does pgpool know which databases I'm trying to connect to? you would need 13 different connection pools. Can this be done? -- Until later, Geoffrey

Re: [GENERAL] pgpool

2010-06-21 Thread Geoffrey
tions are used, what happens to the 21st connection attempt? Is it rejected or put into a queue to wait for the next available connection? -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under th

Re: [GENERAL] pgpool

2010-06-21 Thread Geoffrey
Guillaume Lelarge wrote: Le 21/06/2010 15:52, Geoffrey a écrit : So I've got the following: port = . . backend_hostname0 = 'localhost' backend_port0 = 5434 backend_weight0 = 1 backend_data_directory0 = '/data/pgsql/master' backend_hostname1 = 'l

Re: [GENERAL] pgpool

2010-06-21 Thread Geoffrey
rectory1 = '/data/pgsql/mwv' In my pgpool.conf file and I've restarted the pgpool processes. I can connect to the first entry as follows: psql -p master But if I attempt to connect to the second postmaster as follows: psql -p mwv I can not connect. What am I missing? -- Unti

Re: [GENERAL] pgpool

2010-06-21 Thread Geoffrey
Geoffrey wrote: Gerd Koenig wrote: Hi Geoffrey, you do not need to connect to your database directly, just connect to pgpool itself. e.g.: your database runs on port 5434, pgpool runs on port 5432 => * pgpool has to be configured in that way that it connects to the database on port 5

Re: [GENERAL] pgpool

2010-06-21 Thread Geoffrey
Gerd Koenig wrote: Hi Geoffrey, you do not need to connect to your database directly, just connect to pgpool itself. e.g.: your database runs on port 5434, pgpool runs on port 5432 => * pgpool has to be configured in that way that it connects to the database on port 5434 What parameter

Re: [GENERAL] pgpool

2010-06-21 Thread Geoffrey
Gerd Koenig wrote: Hi Geoffrey, you do not need to connect to your database directly, just connect to pgpool itself. e.g.: your database runs on port 5434, pgpool runs on port 5432 => * pgpool has to be configured in that way that it connects to the database on port 5434 * you/your ap

[GENERAL] pgpool

2010-06-21 Thread Geoffrey
n not find this piece of info in the docs? -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of taking care of them." - Thomas Jefferson -- Sent via pgsql-general mailing

[GENERAL] calculating distance between longitude and latitude

2010-06-09 Thread Geoffrey
Does postgresql have functions to calculate the distance between two sets of longitude and latitude. -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of taking care of them."

Re: [GENERAL] Documentation availability as a single page of text

2010-05-10 Thread Geoffrey
ever asked for that. There must be some tool that will dump an HTML tree as a single text file. Or maybe convert the PDF file to text. On Linux: /usr/bin/pdftotext -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labo

[GENERAL] temp tables

2010-04-30 Thread Geoffrey
Do temp tables need to be explicitly dropped, or do the go away when the process that created them leaves? -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of taking care of

[GENERAL] using between with dates

2010-04-29 Thread Geoffrey Myers
I'm trying the following: ship_date between '04/30/2010' AND '04/30/2010' + 14 But this returns: ERROR: invalid input syntax for integer: "04/30/2010" Can I use between with dates? -- Geoffrey Myers Myers Consulting Inc. 770.592.1651 -- Sent via pgsql-

Re: [GENERAL] using between with dates

2010-04-29 Thread Geoffrey
Tom Lane wrote: Geoffrey writes: ship_date between '04/30/2010' AND '04/30/2010' + 14 ERROR: invalid input syntax for integer: "04/30/2010" Can I use between with dates? The problem with that is the parser has no reason to treat the strings as dates,

Re: [GENERAL] using between with dates

2010-04-29 Thread Geoffrey
Geoffrey wrote: I'm trying the following: ship_date between '04/30/2010' AND '04/30/2010' + 14 But this returns: ERROR: invalid input syntax for integer: "04/30/2010" Can I use between with dates? Got it: ship_date between '04/30/2010' a

[GENERAL] using between with dates

2010-04-29 Thread Geoffrey
I'm trying the following: ship_date between '04/30/2010' AND '04/30/2010' + 14 But this returns: ERROR: invalid input syntax for integer: "04/30/2010" Can I use between with dates? -- Until later, Geoffrey "I predict future happiness for America

[GENERAL] Geoffrey Gowey wants to stay in touch on LinkedIn

2010-03-25 Thread Geoffrey Gowey
LinkedIn Geoffrey Gowey requested to add you as a connection on LinkedIn: -- Andrew, I'd like to add you to my professional network on LinkedIn. - Geoffrey Gowey Accept invitation from Geoffrey Gowey http://www.linkedin.

Re: [GENERAL] database connections and presenting data on the web

2010-03-18 Thread Geoffrey
Craig Ringer wrote: On 18/03/2010 9:19 PM, Geoffrey wrote: We are trying to determine the best solution for a web based application. We have 13 databases (separate postmaster for each database) that we need to retrieve data from in order to produce the web page. This data is changing on a

[GENERAL] database connections and presenting data on the web

2010-03-18 Thread Geoffrey
inute. The cgi code is perl. -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of taking care of them." - Thomas Jefferson -- Sent via pgsql-general mailing list (pgsql-general

[GENERAL] error creating database

2010-02-17 Thread Geoffrey
iroment on the two machines is different. Where do I look to fix this? Thanks. -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of taking care of them." - Thomas Jefferson -- Sent via p

Re: [GENERAL] WAL file question

2009-11-17 Thread Geoffrey
Tom Lane wrote: Geoffrey writes: listing of wal file time stamps for one of our production databases: Nov 17 06:22 000100610013 Nov 17 06:42 000100610014 Nov 17 07:02 000100610015 Nov 17 07:22 000100610016 Nov 17 07:42 000100610017

[GENERAL] WAL file question

2009-11-17 Thread Geoffrey
Nov 17 08:22 000100610019 Nov 17 08:34 000100610012 I would expect that these things are sequential, yet the file that I would think would be the oldest (000100610012) has the latest time stamp. What am I missing? -- Until later, Geoffrey Those who would

Re: [GENERAL] WAL shipping to two machines (PITR)

2009-11-07 Thread Geoffrey
Geoffrey wrote: Geoffrey wrote: We currently have a PITR solution in place that is facilitated via WAL shipment. This is implemented on 13 databases, where the two primary machines which contain the production databases and the PITR machine are physically located in the same facility. We

Re: [GENERAL] WAL shipping to two machines (PITR)

2009-11-07 Thread Geoffrey
Geoffrey wrote: We currently have a PITR solution in place that is facilitated via WAL shipment. This is implemented on 13 databases, where the two primary machines which contain the production databases and the PITR machine are physically located in the same facility. We now want to add a

[GENERAL] WAL shipping to two machines (PITR)

2009-11-07 Thread Geoffrey
te machine, but that entails some delicate timing issues. Any suggestions, pointers would be greatly appreciated. -- Until later, Geoffrey Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. - Benjamin Franklin -- Sent via pgs

[GENERAL] adding another node to our pitr config

2009-10-06 Thread Geoffrey
cation, thus the network reliability is less. Thanks for any insights. -- Until later, Geoffrey Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. - Benjamin Franklin -- Sent via pgsql-general mailing list (pgsql-general@postgre

Re: [GENERAL] Replication

2009-06-24 Thread Geoffrey
ql-general -- Until later, Geoffrey Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. - Benjamin Franklin -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www

Re: [GENERAL] warm standby with WAL shipping

2009-06-04 Thread Geoffrey
Greg Smith wrote: On Thu, 4 Jun 2009, Geoffrey wrote: For now, I'm still looking at the other tools as well as attempting to verify that my current solution doesn't miss any 'little issues.' The main thing you want to test out are that it acts sanely when the netwo

Re: [GENERAL] warm standby with WAL shipping

2009-06-04 Thread Geoffrey
Joshua D. Drake wrote: On Wed, 2009-06-03 at 15:07 -0400, Geoffrey wrote: You are still going to need to either: A. Reinvent the wheel, by scripting it all yourself B. Use solutions that are already used by others such as walmgr or pitrtools My assumption was that since pg_standby does not

Re: [GENERAL] warm standby with WAL shipping

2009-06-04 Thread Geoffrey
Greg Smith wrote: On Wed, 3 Jun 2009, Geoffrey wrote: My assumption was that since pg_standby does not have the scp/rsync functionality, I would have to either modify it, change the way we do things, or 'reinvent' a little different wheel. There are three things to setu

Re: [GENERAL] warm standby with WAL shipping

2009-06-03 Thread Geoffrey
Joshua D. Drake wrote: On Wed, 2009-06-03 at 14:43 -0400, Geoffrey wrote: pg_standby is in no way dependent on PITRTools. PITRTools is, however, dependent on pg_standby. Put another way: you do not need to use PITRTools to use pg_standby. In fact, you also don't need any perl or

Re: [GENERAL] warm standby with WAL shipping

2009-06-03 Thread Geoffrey
Erik Jones wrote: On Jun 3, 2009, at 5:13 AM, Geoffrey wrote: Thank you Greg for taking the time to explain this as throughly as you have. I have found a logic problem in my code. I still don't know if we will use pg_standby as the wrapper code in PITRTools is python and we are

  1   2   3   4   >