Re: [GENERAL] function

2000-08-30 Thread Jan Wieck
Normunds wrote: > Hi all, > > how can I write function which takes text from one field, replaces > some characters and puts it in other field? I have array with old and > new values. > > For example: > old array = {'r', 'Z', 'o'} > new array = {'s', 'm', 't'} > old field value = 'Zorro' > new fiel

[GENERAL] Install from source

2000-08-30 Thread Adam Lang
OK, I downloaded the source and followed the directions from here (http://www.postgresql.org/docs/admin/installation.htm) and when I run the command: /usr/local/pgsql/bin/postmaster -i -D /usr/local/pgsql/data >logfile 2>&1 & I get the error: [1] 28156 bash: logfile: Permission denied I try to c

Re: [GENERAL] Cursors and JDBC

2000-08-30 Thread Peter Mount
Not directly (by methods), but you can use them as you would elsewhere. Issue the relevent sql to declare the cursors, and fetch the results using Statement. Peter -- Peter T Mount [EMAIL PROTECTED], [EMAIL PROTECTED] Homepage: http://www.retep.org.uk Contact details: http://petermount.com Post

Re: [GENERAL] postgresql 7 user passwords dont work ?????

2000-08-30 Thread Emile D Snyder
Isn't this the localall trust host all 127.0.0.1 255.255.255.255 trust lines in the default pg_hba.conf file that comes with the distribution? -emile On Wed, 30 Aug 2000, Eric Webber wrote: > users dont seem to need pa

[GENERAL] postgresql 7 user passwords dont work ?????

2000-08-30 Thread Eric Webber
users dont seem to need password in postgres 7 on red hat linux 6.2, compiled from source. I do an: alter user nsadmin with password 'whatever'; And then when I do an: psql -u -d mydb username: nsadmin password: NOTwhatever IT STILL LETS ME IN This should not be so shou

Re: [GENERAL] Ignore when using COPY FROM

2000-08-30 Thread Fredrick Bartlett
Yes, I have same problem. This functionality is "almost" standard, and found on other RDBMS. How do new features get added to the todo list's. Where can I view the current todo list? Fredrick Matthew Kennedy wrote: > I have a ton of data in a text delimited file from an old legacy system. >

Re: [GENERAL] Importing data into database

2000-08-30 Thread Gilles DAROLD
Take a look at the sql COPY command (\h COPY) it will do it as you want ! [EMAIL PROTECTED] wrote: > > How should I go about importing the contents of an Excel spreadsheet > into a Postgres database table? > > I was considering a comma separated file, but am not sure how to > import this into

[GENERAL] more large objects

2000-08-30 Thread Mike Sears
stil looking for some much needed help on how to use large objects. I've been able to sucessfuly create one, but thats about as far as I have gotten, but I do need to be able to read, and rite to an object.   Mike SearsWeb Developerhttp://www.vianet.ca

Re: [GENERAL] C++ Example

2000-08-30 Thread Ryan Williams
What do you need an example of? I can send you some C++ code that uses ODBC to connect to PostgreSQL, if that's what you need. - Original Message - From: "Miguel Omar Carvajal" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 29, 2000 2:45 PM Subject: [GENERAL] C++ Examp

Re: [GENERAL] equality operator on CIDR column as primary key

2000-08-30 Thread Tom Lane
"Mayers, Philip J" <[EMAIL PROTECTED]> writes: > I'm having problems with the CIDR type. I have a table containing a column > of type CIDR, and that is the primary key. The equality operator for the > CIDR type appears to only work once per connection. I'm not quite sure why you are seeing the ch

RE: [GENERAL] RE: even more CIDR weirdness (was equality operator on CIDR colum n as primary key)

2000-08-30 Thread Mayers, Philip J
Hmm. Hopefully that will sort the problem out. I am fairly sure it's index-related - if a CIDR-type column is either a PRIMARY KEY or explicitly set to UNIQUE, i.e. any indices on the column, the equality operator fails. No index = works fine. Does that tally with the problem you mentioned? Reg

[GENERAL] Importing data into database

2000-08-30 Thread Andrew . Mason
How should I go about importing the contents of an Excel spreadsheet into a Postgres database table? I was considering a comma separated file, but am not sure how to import this into the database. Are there any other suggestions? Thanks Andrew

Re: [GENERAL] foreign keys - script

2000-08-30 Thread Tom Lane
"Adam Lang" <[EMAIL PROTECTED]> writes: > But wouldn't the dependencies be there whether I compile from scratch or use > an RPM? But if you compile from source, it will use whatever libc you have installed. regards, tom lane

Re: [GENERAL] Large selects handled inefficiently?

2000-08-30 Thread Jules Bean
On Thu, Aug 31, 2000 at 12:22:36AM +1000, Andrew Snow wrote: > > > I believe I can work around this problem using cursors (although I > > don't know how well DBD::Pg copes with cursors). However, that > > doesn't seem right -- cursors should be needed to fetch a large query > > without having it

Re: [GENERAL] RE: even more CIDR weirdness (was equality operatoron CIDR colum n as primary key)

2000-08-30 Thread Stephan Szabo
IIRC, there were some problems with CIDR where it was considering the low bits significant even though they might not have been set (in the case of 192.169/16 for example) which was causing fairly odd behavior. I believe they've routed out these problems in current sources so it should be fixed

[GENERAL] Jobs with PostgreSQL

2000-08-30 Thread Martin Neimeier
Hello, a short question: Is it possible to write jobs with PostgreSQl which run in background like with oracle ? cu Martin -- Martin Neimeier Ingenieur-Buero Neimeier Schwarzach / Germany mailto:[EMAIL PROTECTED] / http://www.ibn.de (under heavy reconstruction) Tel:+49(6262)912344 / Fax:+49(

[GENERAL] Cursors and JDBC

2000-08-30 Thread Travis Bauer
Does the JDBC driver support the user of cursors in postgresql 7.0.2? Travis Bauer | CS Grad Student | IU |www.cs.indiana.edu/~trbauer

RE: [GENERAL] Large selects handled inefficiently?

2000-08-30 Thread Andrew Snow
> I believe I can work around this problem using cursors (although I > don't know how well DBD::Pg copes with cursors). However, that > doesn't seem right -- cursors should be needed to fetch a large query > without having it all in memory at once... Actually, I think thats why cursors were inv

Re: [GENERAL] foreign keys - script

2000-08-30 Thread Adam Lang
But wouldn't the dependencies be there whether I compile from scratch or use an RPM? What the main issue that stumped was the libc.6.so dependency. According to epm -a -q, it is installed. I guess I can blow out 6.5 and download the 7.0 source and reinstall a compiled version. Adam Lang System

Re: [GENERAL] Upper and Lower case sensitivities

2000-08-30 Thread Steve Heaven
At 09:20 30/08/00 -0300, Campbell, Scott wrote: >Hey, > >Is there a function within postgres that lets you search for both upper and >lower case at the same time? >I know of the upper() and lower() functions but if a word has both upper and >lower case in it it won't be returned by a query. >Or am

[GENERAL] Upper and Lower case sensitivities

2000-08-30 Thread Campbell, Scott
Hey, Is there a function within postgres that lets you search for both upper and lower case at the same time? I know of the upper() and lower() functions but if a word has both upper and lower case in it it won't be returned by a query. Or am I limited to forcing my data to have one case only? T

[GENERAL] Large selects handled inefficiently?

2000-08-30 Thread Jules Bean
Hiya, I am running a very large SELECT - it selects every row from a ~10 000 000 row table. I'm running this in Perl using DBD:Pg, with the general sequence: $sth = $dbh->prepare("SELECT $fields FROM $from") || return 0; $fh = new FileHandle(">$file") || die "Can't open $file : $!"; $sth->execut

[GENERAL] SSL support autoconfiguration troubles

2000-08-30 Thread Trurl McByte
-BEGIN PGP SIGNED MESSAGE- If OpenSSL compiled with `rsaref' need additional libraries: -lRSAglue -lrsaref - -- Trurl McByte, Capt. of StasisCruiser "Prince" |InterNIC: AR3200 RIPE: AR1627-RIPE| |--98 C3 78 8E 90 E3 01 35 87 1F 3F EF FD 6D 84 B3--| -BEGIN

Re: [GENERAL] table count limitation

2000-08-30 Thread g
Be aware of one thing: having a seperate table for each product type makes it extremely difficult to scale your application. In your plan, everytime you add a new product type you have to create a new table. Which means if you have any sort of general "search all product types for this attribute"

[GENERAL] RE: even more CIDR weirdness (was equality operator on CIDR column as primary key)

2000-08-30 Thread Mayers, Philip J
Ok, now I'm getting truly confused. It works with some networks, but not with others: test=> select * from test; network | netcol + 192.168/16 | 192/8 192/8 | 192/4 155.198/16 | 155.198.1/24 | 156.198/16 | 156.198.1/24 | 193.63.75.

[GENERAL] equality operator on CIDR column as primary key

2000-08-30 Thread Mayers, Philip J
I'm having problems with the CIDR type. I have a table containing a column of type CIDR, and that is the primary key. The equality operator for the CIDR type appears to only work once per connection. The following SQL shows a test case demonstrating the problems. I'm running stock Redhat 6.2 on

RE: [GENERAL] vacuumdb failed

2000-08-30 Thread Hiroshi Inoue
> -Original Message- > From: Tom Lane > > > Now, I'm not sure if this is related, but while trying to > do vacuumdb > > , I got... > > > NOTICE: FlushRelationBuffers(all_flows, 500237): block 171439 is > > referenced (private 0, global 1) > > FATAL 1: VACUUM (vc_repair_frag): Flush

[GENERAL] PL/pgSQL

2000-08-30 Thread Stephan Richter
Hello everyone, I am using PostgreSQL already for quiet a while and now I want to extend my knowledge and make better use of PostgreSQL itself. Here is a selection of the issues I try to solve: - If I delete a record, I want to delete all its references. -- Is it right that I have to use a f