Re: [BUGS] BUG #5304: psql using conninfo fails in connecting to the server

2010-02-02 Thread Tom Lane
Joe Conway writes: > Should I also be looking to replace all (or most) other instances of > PQsetdbLogin()? I think we at least wanted to fix pg_dump(all)/pg_restore. Not sure if the others are worth troubling over. regards, tom lane -- Sent via pgsql-bugs mailing list

Re: [BUGS] BUG #5304: psql using conninfo fails in connecting to the server

2010-02-02 Thread Joe Conway
On 02/02/2010 10:08 PM, Tom Lane wrote: > Joe Conway writes: >> Are there any of the psql parameters that we do not want to allow to be >> overridden by the conninfo string? > > Actually, now that I think about it, psql shouldn't be setting > application_name at all. It should be setting > fallb

Re: [BUGS] BUG #5304: psql using conninfo fails in connecting to the server

2010-02-02 Thread Tom Lane
Joe Conway writes: > Are there any of the psql parameters that we do not want to allow to be > overridden by the conninfo string? Actually, now that I think about it, psql shouldn't be setting application_name at all. It should be setting fallback_application_name, and I think that should be aft

Re: [BUGS] BUG #5304: psql using conninfo fails in connecting to the server

2010-02-02 Thread Joe Conway
On 02/02/2010 06:40 PM, Tom Lane wrote: > The difference with PQconnectdbParams is that the dbname might not be > the first thing in the parameter array. I think that a straightforward > implementation would have the effect of the expanded dbname overriding > parameters given before it, but not th

Re: [BUGS] whole-row functional index?

2010-02-02 Thread Jasen Betts
On 2010-02-02, Tom Lane wrote: > Jasen Betts writes: >> jasen=# update member set id=id where id=441; >> UPDATE 1 >> jasen=# create index member_search on member using gin ( >> (get_search_text_internal(member)) ); >> CREATE INDEX >> jasen=# update member set id=id where id=441; >> ERROR: table

Re: [BUGS] BUG #5308: How to disable Case sensitivity on naming identifiers

2010-02-02 Thread Pavel Stehule
Hello, usually sql identifiers are case insensitive. There are exception. If you use double quotes for sql identifier, then you have to write exact same identifier everywhere. postgres=# create table Foo(a integer); CREATE TABLE Time: 174,078 ms postgres=# select * from Foo; a --- (0 rows) Time

Re: [BUGS] BUG #5308: How to disable Case sensitivity on naming identifiers

2010-02-02 Thread Chris Travers
On Tue, Feb 2, 2010 at 12:11 PM, Kelly SACAULT wrote: > > The following bug has been logged online: > > Bug reference:      5308 > Logged by:          Kelly SACAULT > Email address:      kelly.saca...@gmail.com > PostgreSQL version: 8.4.2 > Operating system:   Ubuntu 9.10 > Description:        How

[BUGS] BUG #5308: How to disable Case sensitivity on naming identifiers

2010-02-02 Thread Kelly SACAULT
The following bug has been logged online: Bug reference: 5308 Logged by: Kelly SACAULT Email address: kelly.saca...@gmail.com PostgreSQL version: 8.4.2 Operating system: Ubuntu 9.10 Description:How to disable Case sensitivity on naming identifiers Details: I have in

Re: [BUGS] BUG #5304: psql using conninfo fails in connecting to the server

2010-02-02 Thread Tom Lane
Joe Conway writes: > On 02/02/2010 06:10 PM, Tom Lane wrote: >> We should also give more than zero thought to how values coming from the >> expanded dbname should interact with values from other arguments to >> PQconnectdbParams --- which should override which? And should there be >> an order dep

Re: [BUGS] BUG #5304: psql using conninfo fails in connecting to the server

2010-02-02 Thread Joe Conway
On 02/02/2010 06:10 PM, Tom Lane wrote: > Since we haven't yet released PQconnectdbParams, it's not too late > to twiddle its API. What I'm thinking about is an additional > boolean parameter "expand_dbname", which only if true would enable > treating an equal-sign-containing dbname like a conninf

Re: [BUGS] BUG #5304: psql using conninfo fails in connecting to the server

2010-02-02 Thread Tom Lane
Fujii Masao writes: > On Wed, Feb 3, 2010 at 10:05 AM, Joe Conway wrote: >> Objections? > I think that PQconnectdbParams() rather than psql should handle the > dbname containing "=". Otherwise whenever we use PQconnectdbParams(), > we would have to check for the content of the dbname before call

Re: [BUGS] BUG #5304: psql using conninfo fails in connecting to the server

2010-02-02 Thread Joe Conway
On 02/02/2010 05:59 PM, Tom Lane wrote: > This seems bogus on a couple of levels. First off, I thought the idea > was to get away from using PQsetdbLogin at all. If we go down this path > we'll never be rid of it. Second, to preserve backwards compatibility > we will have to duplicate this same

Re: [BUGS] BUG #5304: psql using conninfo fails in connecting to the server

2010-02-02 Thread Tom Lane
Joe Conway writes: > If "=" is found in the dbname psql argument, the argument is assumed to > be a conninfo string. In that case, append application_name to the > conninfo and use PQsetdbLogin() as before. Otherwise use the new > PQconnectdbParams(). This seems bogus on a couple of levels. Firs

Re: [BUGS] BUG #5304: psql using conninfo fails in connecting to the server

2010-02-02 Thread Joe Conway
On 02/02/2010 05:46 PM, Fujii Masao wrote: > On Wed, Feb 3, 2010 at 10:05 AM, Joe Conway wrote: >> Objections? > > I think that PQconnectdbParams() rather than psql should handle the > dbname containing "=". Otherwise whenever we use PQconnectdbParams(), > we would have to check for the content o

Re: [BUGS] BUG #5304: psql using conninfo fails in connecting to the server

2010-02-02 Thread Fujii Masao
On Wed, Feb 3, 2010 at 10:05 AM, Joe Conway wrote: > Here's a patch. Thanks! > If "=" is found in the dbname psql argument, the argument is assumed to > be a conninfo string. In that case, append application_name to the > conninfo and use PQsetdbLogin() as before. Otherwise use the new > PQconne

Re: [BUGS] BUG #5304: psql using conninfo fails in connecting to the server

2010-02-02 Thread Joe Conway
On 02/01/2010 08:06 AM, Tom Lane wrote: > Heikki Linnakangas writes: >> Fujii Masao wrote: >>> In HEAD, psql using conninfo fails in connecting to the server as follows. >>> >>> $ bin/psql "host=localhost" >>> psql: FATAL: database "host=localhost" does not exist >>> >>> This is because the recen

Re: [BUGS] whole-row functional index?

2010-02-02 Thread Tom Lane
Jasen Betts writes: > jasen=# update member set id=id where id=441; > UPDATE 1 > jasen=# create index member_search on member using gin ( > (get_search_text_internal(member)) ); > CREATE INDEX > jasen=# update member set id=id where id=441; > ERROR: table row type and query-specified row type do

Re: [BUGS] Warnings building 8.5alpha3 on Solaris 10

2010-02-02 Thread Tom Lane
Isaac Morland writes: > I get the following warnings building 8.5alpha3 on Solaris 10. > I do not get these warnings building 8.4 exactly the same way. > standby.c:239: warning: int format, pid_t arg (arg 3) > standby.c:247: warning: int format, pid_t arg (arg 5) That looks like a real problem,

[BUGS] whole-row functional index?

2010-02-02 Thread Jasen Betts
jasen=# update member set id=id where id=441; UPDATE 1 jasen=# create index member_search on member using gin ( (get_search_text_internal(member)) ); CREATE INDEX jasen=# update member set id=id where id=441; ERROR: table row type and query-specified row type do not match DETAIL: Physical storag

[BUGS] Warnings building 8.5alpha3 on Solaris 10

2010-02-02 Thread Isaac Morland
I get the following warnings building 8.5alpha3 on Solaris 10. I do not get these warnings building 8.4 exactly the same way. standby.c:239: warning: int format, pid_t arg (arg 3) standby.c:247: warning: int format, pid_t arg (arg 5) descriptor.c:23: warning: missing braces around initializer des

Re: [BUGS] REFERENCES misbehaves with inheritance

2010-02-02 Thread Robert Haas
On Sun, Jan 31, 2010 at 9:07 AM, Steve White wrote: > Hi, > > I'm aware that this is a manifestation of the problem mentioned in the > Caveats subsection of the Inheritance section.  I want to emphasize it, > and maybe rattle your cage a bit. > > I find the Postgres notion of inheritance very comp

Re: [BUGS] BUG #5307: Crash in AllocSetAlloc

2010-02-02 Thread Tom Lane
"Igor Lasic" writes: > We have an application running C-API stored procedures. After running for a > while postgres crashes with: > If I increase shared memory application runs longer but eventually crashes. The odds are incredibly high that this means there's a memory-stomping bug in your C sto

Re: [BUGS] BUG #5307: Crash in AllocSetAlloc

2010-02-02 Thread Alvaro Herrera
Igor Lasic wrote: > > The following bug has been logged online: > > Bug reference: 5307 > Logged by: Igor Lasic > Email address: i...@a-bb.net > PostgreSQL version: 8.3.7 > Operating system: Linux > Description:Crash in AllocSetAlloc > Details: > > We have an applic

[BUGS] BUG #5307: Crash in AllocSetAlloc

2010-02-02 Thread Igor Lasic
The following bug has been logged online: Bug reference: 5307 Logged by: Igor Lasic Email address: i...@a-bb.net PostgreSQL version: 8.3.7 Operating system: Linux Description:Crash in AllocSetAlloc Details: We have an application running C-API stored procedures. Aft

Re: [BUGS] BUG #5306: psql: symbol lookup error: /usr/lib/libreadline.so.5: undefined symbol: BC

2010-02-02 Thread Chris Travers
On Tue, Feb 2, 2010 at 7:38 AM, Tom Lane wrote: > "" writes: >> I made an installation of Postgres on a redhat machine after compiling >> sources on a redhat machine. Everything is OK. >> When i install Postgres on a debian machine, i get an error when using psql >> : "psql: symbol lookup error:

Re: [BUGS] BUG #5306: psql: symbol lookup error: /usr/lib/libreadline.so.5: undefined symbol: BC

2010-02-02 Thread Tom Lane
"" writes: > I made an installation of Postgres on a redhat machine after compiling > sources on a redhat machine. Everything is OK. > When i install Postgres on a debian machine, i get an error when using psql > : "psql: symbol lookup error: /usr/lib/libreadline.so.5: undefined symbol: > BC" > I

[BUGS] BUG #5306: psql: symbol lookup error: /usr/lib/libreadline.so.5: undefined symbol: BC

2010-02-02 Thread
The following bug has been logged online: Bug reference: 5306 Logged by: Email address: christophe.mou...@progimed.fr PostgreSQL version: 8.4.1 Operating system: Linux/Redhat Description:psql: symbol lookup error: /usr/lib/libreadline.so.5: undefined symbol: BC Detai