[GENERAL] pg_dump - lost synchronization with server: got message type "d", length 6036499

2008-07-01 Thread Klint Gore
Can someone shed some light on what's happening here? D:\backups>pg_dump -Z 9 -Fc -C -U postgres -f sheepcrc\dbback.dmp sheepcrc2 pg_dump: Dumping the contents of table "uploadeddatafiles" failed: PQgetCopyData () failed. pg_dump: Error message from server: lost synchronization with server: go

Re: [GENERAL] Target lists can have at most 1664 entries?

2008-07-01 Thread Richard Huxton
Bjørn T Johansen wrote: What does this mean and how can it be fixed? We are running Hibernate with PostgreSQL 8.3.x... What query is Hibernate generating? That's an error from the planner. -- Richard Huxton Archonet Ltd -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org

Re: [GENERAL] pg crashing

2008-07-01 Thread Tom Lane
Magnus Hagander <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> But the syslogger process (and maybe others) is *not* supposed to die. > Right. But are you saying we actually want to start up a new backend in > a directory where we already have a running syslogger (and maybe others) > processes,

Re: [GENERAL] pg crashing

2008-07-01 Thread Magnus Hagander
Tom Lane wrote: > Magnus Hagander <[EMAIL PROTECTED]> writes: >> Tom Lane wrote: >>> Another problem is that postmaster children that do >>> PGSharedMemoryDetach will still have valid inherited handles for >>> the shmem segment --- does that factor into the behavior? It looks >>> to me like the Cl

Re: [GENERAL] pg crashing

2008-07-01 Thread Tom Lane
Magnus Hagander <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> Another problem is that postmaster children that do >> PGSharedMemoryDetach will still have valid inherited handles for >> the shmem segment --- does that factor into the behavior? It looks >> to me like the CloseHandle ought to be i

[GENERAL] Target lists can have at most 1664 entries?

2008-07-01 Thread Bjørn T Johansen
What does this mean and how can it be fixed? We are running Hibernate with PostgreSQL 8.3.x... Regards, BTJ -- --- Bjørn T Johansen [EMAIL PROTECTED] --

Re: [GENERAL] pg crashing

2008-07-01 Thread Magnus Hagander
Tom Lane wrote: > "Roberts, Jon" <[EMAIL PROTECTED]> writes: >> Version: "PostgreSQL 8.3.0, compiled by Visual C++ build 1400" > > Well, there are plenty of known bugs in 8.3.0 by now. You really > should update before complaining, not after. Yes. And the traditional question should be asked - i

Re: [GENERAL] SRF written in C

2008-07-01 Thread Martijn van Oosterhout
On Tue, Jul 01, 2008 at 10:02:39AM -0500, Felipe de Jesús Molina Bravo wrote: > Hi > > what can i do for a SRF written in C, can called as follow: > > select * from obtAscendencia('(11099,15685)','(6808,9621)'); > > I can call the function: > select obtAscendencia('(11099,15685)','(6808,96

Re: [GENERAL] Re: problem getting postgres 8.3.1 with xml support to work on Redhat Enterprise Linux 4

2008-07-01 Thread Martijn van Oosterhout
On Tue, Jul 01, 2008 at 05:06:54PM +0800, Craig Ringer wrote: > >What could be more friendly than providing few ways to specify where > >to look for shared libraries? > > rpath linking, so the executable can have relative (or at least on some > systems absolute) paths to libraries "burned in" at

Re: [GENERAL] Memory use in 8.3 plpgsql with heavy use of xpath()

2008-07-01 Thread Tom Lane
"Matt Magoffin" <[EMAIL PROTECTED]> writes: >> Ugh. Sounds like "small memory leak inside libxml2" --- probably not >> going to be easy to find. Can you put together a self-contained test >> case? > OK, I'll try to come up with something. Do you have a recommended way of > capturing the amount m

Re: [GENERAL] Problem with roles and permissions

2008-07-01 Thread Tom Lane
"Chandra Barnett" <[EMAIL PROTECTED]> writes: > That did it! Thanks, all. > (Out of curiosity, what's the reason for not making this the default? Uh ... it *is* the default. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make

Re: [GENERAL] Problem with roles and permissions

2008-07-01 Thread Chandra Barnett
That did it! Thanks, all. (Out of curiosity, what's the reason for not making this the default? It seems to me that if you're making a role a child of another role, it's /because/ you want to inherit permissions. OTOH maybe defaulting to more security is smart enough to be worth the confusion.

Re: [GENERAL] Memory use in 8.3 plpgsql with heavy use of xpath()

2008-07-01 Thread Matt Magoffin
> Ugh. Sounds like "small memory leak inside libxml2" --- probably not > going to be easy to find. Can you put together a self-contained test > case? OK, I'll try to come up with something. Do you have a recommended way of capturing the amount memory being used by Postgres related to this? I was

Re: [GENERAL] Memory use in 8.3 plpgsql with heavy use of xpath()

2008-07-01 Thread Tom Lane
"Matt Magoffin" <[EMAIL PROTECTED]> writes: > Later, I added a large set of plpgsql trigger functions that operate on > that new xml column data, using the xpath() function to extract bits of > XML and populate them into normal tables. The server has been running in > this fashion for many months n

[GENERAL] Memory use in 8.3 plpgsql with heavy use of xpath()

2008-07-01 Thread Matt Magoffin
I've been using Postgres 8.3 in a production environment for some time now, and have noticed a difference in long-term non-shared memory use by Postgres since upgrading the system from 8.1. After initially making the switch to 8.3 and making only one schema change (changed a text column to xml) the

Re: [GENERAL] Problem with roles and permissions

2008-07-01 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > Probably your group role needs to have the INHERIT property set. I think it's the other way around --- the login role needs the INHERIT property. Anyway, one or the other should do it. regards, tom lane -- Sent via pgsql-gene

Re: [GENERAL] Problem with roles and permissions

2008-07-01 Thread Alvaro Herrera
Chandra Barnett wrote: > What I've done so far is to set up a "group role" and explicitly > granted it every possible type of permission on the database in > question, and also on the individual relations in that database. Then > I created a "login role" and made it part of the group role I create

[GENERAL] Problem with roles and permissions

2008-07-01 Thread Chandra Barnett
Hi -- I've recently started using PostgreSQL after working with MySQL for quite a while. I've been trying to set up roles so I can manage permissions per-user, but it's not working the way I expected and I'm wondering if anyone can steer me straight. What I've done so far is to set up a "g

Re: [GENERAL] pg crashing

2008-07-01 Thread Tom Lane
"Roberts, Jon" <[EMAIL PROTECTED]> writes: > Version: "PostgreSQL 8.3.0, compiled by Visual C++ build 1400" Well, there are plenty of known bugs in 8.3.0 by now. You really should update before complaining, not after. > Problem: My database keeps on crashing every few days with this type of > er

[GENERAL] pg crashing

2008-07-01 Thread Roberts, Jon
Platform: Windows 2003 Server 32 bit Windows SharedSection set to 1024,3072 based on recommendations from http://www.postgresql.org/docs/faqs.FAQ_windows.html#4.4 and http://support.microsoft.com/kb/184802 Version: "PostgreSQL 8.3.0, compiled by Visual C++ build 1400" Autovacuum: on Virus Scanning:

Re: [GENERAL] Version 8.2.6 - ecpg: current_timestamp - how to control timezone

2008-07-01 Thread Tom Lane
paul tilles <[EMAIL PROTECTED]> writes: > How do we set the time zone for current_timestamp to be UTC? http://www.postgresql.org/docs/8.2/static/datatype-datetime.html#DATATYPE-TIMEZONES regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.o

[GENERAL] Version 8.2.6 - ecpg: current_timestamp - how to control timezone

2008-07-01 Thread paul tilles
We have noticed that in the ecpg version for postgres 7.4.8, that the timezone associated with current_timestamp was UTC. We recently upgraded to postgres Version 8.2.6 and notice that the timezone associated with current_timestamp is the local time zone. How do we set the time zone for curr

Re: [GENERAL] SAST FATAL: could not access private key file "server.key"

2008-07-01 Thread Albe Laurenz
Dave Coventry wrote: > When starting Postgres I get the following: > > > [EMAIL PROTECTED]:/home/it# /etc/init.d/postgresql-8.2 start > * Starting PostgreSQL 8.2 database server > * The PostgreSQL server failed to start. Please check the log > output: > 2008-07-01 13:37:39 SAST FATAL:

[GENERAL] SRF written in C

2008-07-01 Thread Felipe de Jesús Molina Bravo
Hi what can i do for a SRF written in C, can called as follow: select * from obtAscendencia('(11099,15685)','(6808,9621)'); I can call the function: select obtAscendencia('(11099,15685)','(6808,9621)'); the code of function is: PG_FUNCTION_INFO_V1(obtAscendencia);

Re: [GENERAL] Problems with a C function, pg_uname(), and String concatenation.

2008-07-01 Thread Tom Lane
Rafael Martinez <[EMAIL PROTECTED]> writes: > We have a function in C which is accessed via a view and which produces > a strange result when used together with || (String concatenation). > I can not find the problem. Any C/postgres guru with any idea of how to > fix it? You need to set the size

Re: [GENERAL] Need some help

2008-07-01 Thread Chandra ASGI Tech
Probably your installation misses those odbc drivers. you may either use the yum package manager (refer http://www.centos.org/modules/newbb/viewtopic.php?topic_id=12749&forum=44&post_id=42050#forumpost42050) or download the drivers from http://rpm.pbone.net/index.php3/stat/4/idpl/5594193/com/unixOD

Re: [GENERAL] "out of balance" result on select from suspected index corruption [RESOLVED]

2008-07-01 Thread Henry - Zen Search SA
On Mon, June 30, 2008 9:45 pm, Tom Lane wrote: > "Henry - Zen Search SA" <[EMAIL PROTECTED]> writes: >> The problem was this: a silly SQL error (misuse of OR and missing >> parentheses) resulted in a massive result set which resulted in OOM - if >> the select is run manually (no funny "out of bala

Re: [GENERAL] SAST FATAL: could not access private key file "server.key"

2008-07-01 Thread Glyn Astill
Sounds like your using an ssl connection and it's looking for an openssl key, you need to make sure it's installed and you've generated a csr... - Original Message > From: Dave Coventry <[EMAIL PROTECTED]> > To: pgsql-general@postgresql.org > Sent: Tuesday, 1 July, 2008 1:05:29 PM > Su

Re: [GENERAL] SAST FATAL: could not access private key file "server.key"

2008-07-01 Thread A. Kretschmer
am Tue, dem 01.07.2008, um 14:05:29 +0200 mailte Dave Coventry folgendes: > When starting Postgres I get the following: > > > [EMAIL PROTECTED]:/home/it# /etc/init.d/postgresql-8.2 start > * Starting PostgreSQL 8.2 database server > * The PostgreSQL server failed to start. Please chec

Re: [GENERAL] SAST FATAL: could not access private key file "server.key"

2008-07-01 Thread Bill Moran
In response to "Dave Coventry" <[EMAIL PROTECTED]>: > When starting Postgres I get the following: > > > [EMAIL PROTECTED]:/home/it# /etc/init.d/postgresql-8.2 start > * Starting PostgreSQL 8.2 database server > * The PostgreSQL server failed to start. Please check the > log output: >

Re: [GENERAL] Query Fails

2008-07-01 Thread Bill Moran
In response to sheikh salman <[EMAIL PROTECTED]>: > Hallo Fellows > > I am a new User of postgresql.I have installed it on window XP.I feel it > little complicated on Window.I have already connected it with visual c++ > 2005,but when i wanted to insert some data in my databank,then it fails and

[GENERAL] SAST FATAL: could not access private key file "server.key"

2008-07-01 Thread Dave Coventry
When starting Postgres I get the following: [EMAIL PROTECTED]:/home/it# /etc/init.d/postgresql-8.2 start * Starting PostgreSQL 8.2 database server * The PostgreSQL server failed to start. Please check the log output: 2008-07-01 13:37:39 SAST FATAL: could not access private key file "s

Re: [GENERAL] Problems with a C function, pg_uname(), and String concatenation.

2008-07-01 Thread Rafael Martinez
Pavel Stehule wrote: 2008/7/1 Rafael Martinez <[EMAIL PROTECTED]>: Pavel Stehule wrote: hello try memcpy(VARDATA(result),uname_pointer.release,strlen(uname_pointer.release)); SET_VARSIZE(result, strlen(uname_pointer.release) + VARHDRSZ); [.] This a 8.2.x system. SET_VARSIZE is not

Re: [GENERAL] Problems with a C function, pg_uname(), and String concatenation.

2008-07-01 Thread Glyn Astill
> Pavel Stehule wrote: > > hello > > try > > > > memcpy(VARDATA(result),uname_pointer.release,strlen(uname_pointer.release)); > > SET_VARSIZE(result, strlen(uname_pointer.release) + VARHDRSZ); > > > [.] > > This a 8.2.x system. SET_VARSIZE is not available. > > Thanks for your time. >

Re: [GENERAL] Problems with a C function, pg_uname(), and String concatenation.

2008-07-01 Thread Pavel Stehule
2008/7/1 Rafael Martinez <[EMAIL PROTECTED]>: > Pavel Stehule wrote: >> >> hello >> try >> >> >> memcpy(VARDATA(result),uname_pointer.release,strlen(uname_pointer.release)); >> SET_VARSIZE(result, strlen(uname_pointer.release) + VARHDRSZ); >> > [.] > > This a 8.2.x system. SET_VARSIZE is no

Re: [GENERAL] Problems with a C function, pg_uname(), and String concatenation.

2008-07-01 Thread Rafael Martinez
Pavel Stehule wrote: hello try memcpy(VARDATA(result),uname_pointer.release,strlen(uname_pointer.release)); SET_VARSIZE(result, strlen(uname_pointer.release) + VARHDRSZ); [.] This a 8.2.x system. SET_VARSIZE is not available. Thanks for your time. regards -- Rafael Martinez, <[EMAIL

Re: [GENERAL] multi-word expression full-text searching

2008-07-01 Thread Teodor Sigaev
If I understand well the plainto_tsquery behaviour, this query match with: Despite this, the president went out. Despite the event, this question arise. Right, you mean phrase search. Read the thread: http://archives.postgresql.org/pgsql-hackers/2008-05/msg0.php Suggested patch should be

Re: [GENERAL] Need some help

2008-07-01 Thread Allan Kamau
Indeed, perhaps no one in the mailing list can look over your shoulder to get the much needed additional details as Chandra has pointed out. My guess is that you may be trying a binary install, perhaps rpm. The install the complains that it cannot find libraries that it requires installed on t

Re: [GENERAL] multi-word expression full-text searching

2008-07-01 Thread Oleg Bartunov
On Tue, 1 Jul 2008, [EMAIL PROTECTED] wrote: SELECT id FROM document WHERE to_tsvector('english',text) @@ plainto_tsquery('english','despite this'); -- Teodor Sigaev If I understand well the plainto_tsquery behaviour, this query match with: Despite this, the president went out. Despite the e

Re: [GENERAL] Problems with a C function, pg_uname(), and String concatenation.

2008-07-01 Thread Pavel Stehule
hello try memcpy(VARDATA(result),uname_pointer.release,strlen(uname_pointer.release)); SET_VARSIZE(result, strlen(uname_pointer.release) + VARHDRSZ); Regards Pave Stehule 2008/7/1 Rafael Martinez <[EMAIL PROTECTED]>: > Hello > > We have a function in C which is accessed via a view and which prod

Re: [GENERAL] FTS question

2008-07-01 Thread hubert depesz lubaczewski
On Tue, Jul 01, 2008 at 01:14:12AM -0700, Damjan Rems wrote: > Id would like to get aproximatly this. > WHERE name LIKE 'somes%' > But how do I construct FTS query for this? for this - you dont need ftps. you just need proper index. there will be prefix searches in full text indexes in postgresql

Re: [GENERAL] Need some help

2008-07-01 Thread Andrej Ricnik-Bay
On 01/07/2008, Jamie Deppeler <[EMAIL PROTECTED]> wrote: > trying to install Postgresql 8.3 and i keep getting these errors > > libodbc.so is needed > libodbcinst.so is needed > > Hopefully someone can help me I'll hazard a guess and assume you're using some sort of Linux :} ...which distro are

Re: [GENERAL] Need some help

2008-07-01 Thread Chandra ASGI Tech
Hi, I may not have the answer immediately but I think more details like on which OS you are trying to install and whether you are using the binary or are building it yourself, would be helpful for others to give a solution. Regards, ChandraASGI On Tue, Jul 1, 2008 at 4:37 AM, Jamie Deppeler <[E

Re: [GENERAL] multi-word expression full-text searching

2008-07-01 Thread lbarcala
> > SELECT id FROM document WHERE to_tsvector('english',text) @@ > plainto_tsquery('english','despite this'); > -- > Teodor Sigaev If I understand well the plainto_tsquery behaviour, this query match with: Despite this, the president went out. Despite the event, this question arise. i.e., if "th

Re: [GENERAL] Query Fails

2008-07-01 Thread Chandra ASGI Tech
Hi, Also please check the number of attributes (columns) in the table and their datatype - ensure that your Insert query handles them properly. Better would be if you can give the details like the table structure, the error output. Also, verify if the error is something related to VC++, rather th

Re: [GENERAL] php + postgresql website ?

2008-07-01 Thread Clemens Schwaighofer
--On Monday, June 30, 2008 08:06:25 PM +0800 paragasu <[EMAIL PROTECTED]> wrote: i can name a lot of website written in mysql and php. currently, i am planning to use postgresql database for my next project. i know there is a lot of testimonial about postgresql is better than mysql. can anyo

Re: [GENERAL] FTS question

2008-07-01 Thread Richard Huxton
Damjan Rems wrote: Um - you're using the full-text indexing. It's supposed to search words. You can use any of the pattern-matching functions / operators (LIKE etc) here if you want to explicitly match characters. http://www.postgresql.org/docs/current/static/functions-matching.html If that's

Re: [GENERAL] Re: problem getting postgres 8.3.1 with xml support to work on Redhat Enterprise Linux 4

2008-07-01 Thread Craig Ringer
askel wrote: On Jun 27, 5:46 pm, [EMAIL PROTECTED] (Tom Lane) wrote: Linux isn't real friendly to putting shared libraries outside the standard directories. If you want to keep libxml2.so in its own directory you'll need to teach the dynamic linker to look there. See ldconfig. What could be

[GENERAL] Problems with a C function, pg_uname(), and String concatenation.

2008-07-01 Thread Rafael Martinez
Hello We have a function in C which is accessed via a view and which produces a strange result when used together with || (String concatenation). I can not find the problem. Any C/postgres guru with any idea of how to fix it? Here is the function and the result when used with ||: -

Re: [GENERAL] Query Fails

2008-07-01 Thread Richard Huxton
Sheikh Salman Ahmed wrote: Hallo Fellows I am a new User of postgresql.I have installed it on window XP.I feel it little complicated on Window.I have already connected it with visual c++ 2005,but when i wanted to insert some data in my databank,then it fails and shows sytax error or doesn't re

[GENERAL] Need some help

2008-07-01 Thread Jamie Deppeler
trying to install Postgresql 8.3 and i keep getting these errors libodbc.so is needed libodbcinst.so is needed Hopefully someone can help me -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-gene

Re: [GENERAL] FTS question

2008-07-01 Thread Damjan Rems
> Um - you're using the full-text indexing. It's > supposed to search words. > > You can use any of the pattern-matching functions / > operators (LIKE etc) > here if you want to explicitly match characters. > http://www.postgresql.org/docs/current/static/functions-matching.html > > If that's no

Re: [GENERAL] Query Fails

2008-07-01 Thread A. Kretschmer
am Mon, dem 30.06.2008, um 20:38:08 + mailte Sheikh Salman Ahmed folgendes: > > Hallo Fellows > > I am a new User of postgresql.I have installed it on window XP.I feel it > little > complicated on Window.I have already connected it with visual c++ 2005,but > when > i wanted to insert some

Re: [GENERAL] FTS question

2008-07-01 Thread Richard Huxton
Damjan Rems wrote: SELECT * FROM clients WHERE to_tsvector('english',name) @@ to_tsquery( 'english','somestring'); But if I want to query just part of the string return set is empty: SELECT * FROM clients WHERE to_tsvector('english',name) @@ to_tsquery( 'english','somes'); returns no results.

[GENERAL] Query Fails

2008-07-01 Thread Sheikh Salman Ahmed
Hallo Fellows I am a new User of postgresql.I have installed it on window XP.I feel it little complicated on Window.I have already connected it with visual c++ 2005,but when i wanted to insert some data in my databank,then it fails and shows sytax error or doesn't recognise my table, but con

[GENERAL] Query Fails

2008-07-01 Thread Sheikh Salman Ahmed
Hallo Fellows I am a new User of postgresql.I have installed it on window XP.I feel it little complicated on Window.I have already connected it with visual c++ 2005,but when i wanted to insert some data in my databank,then it fails and shows sytax error or doesn't recognise my table, but con

[GENERAL] Query Fails

2008-07-01 Thread Sheikh Salman Ahmed
Hallo Fellows I am a new User of postgresql.I have installed it on window XP.I feel it little complicated on Window.I have already connected it with visual c++ 2005,but when i wanted to insert some data in my databank,then it fails and shows sytax error or doesn't recognise my table, but con

[GENERAL] Re: problem getting postgres 8.3.1 with xml support to work on Redhat Enterprise Linux 4

2008-07-01 Thread askel
On Jun 27, 5:46 pm, [EMAIL PROTECTED] (Tom Lane) wrote: > Linux isn't real friendly to putting shared libraries outside the > standard directories. If you want to keep libxml2.so in its own directory > you'll need to teach the dynamic linker to look there. See ldconfig. What could be more friend

Re: [GENERAL] problem getting postgres 8.3.1 with xml support to work on Redhat Enterprise Linux 4

2008-07-01 Thread Aswani Kumar
Thanks a lot for the help. I changed the /etc/ld.so.conf to include the libxml2 directories and did /sbin/ldconfig -v . Postgres initdb started fine after that. Thanks Aswin -Original Message- From: Tom Lane [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2008 4:46 PM To: Aswani Kumar

[GENERAL] Query Fails

2008-07-01 Thread sheikh salman
Hallo Fellows   I am a new User of postgresql.I have installed it on window XP.I feel it little complicated on Window.I have already connected it with visual c++ 2005,but when i wanted to insert some data in my databank,then it fails and shows sytax error or  doesn't recognise my table, but co

Re: [GENERAL] FTS question

2008-07-01 Thread Oleg Bartunov
On Mon, 30 Jun 2008, Damjan Rems wrote: I created a FTS index: CREATE INDEX clients_fts ON clients USING gist( to_tsvector( 'english', name) ) I can do FTS queries like: SELECT * FROM clients WHERE to_tsvector('english',name) @@ to_tsquery( 'english','somestring'); But if I want to query just

[GENERAL] Query Fails

2008-07-01 Thread Sheikh Salman Ahmed
Hallo Fellows I am a new User of postgresql.I have installed it on window XP.I feel it little complicated on Window.I have already connected it with visual c++ 2005,but when i wanted to insert some data in my databank,then it fails and shows sytax error or doesn't recognise my table, but con