Re: [GENERAL] opening a channel between two postgreSQL-servers?

2006-11-04 Thread Ben
I believe contrib/dblink may be what you're after... On Sat, 4 Nov 2006, stig erikson wrote: Hi. a handy thing in mysql is FEDERATED tables that allows one to open a channel from one MySQL-server to another MySQL-server. it helps a lot when writing stored procedures that transfer data to other

Re: [GENERAL] ERROR: tuple concurrently updated

2006-11-04 Thread Tom Lane
Russell Smith <[EMAIL PROTECTED]> writes: > I got this error the other day, I was under the impression that vacuum could > get a concurrently updated tuple. I could be wrong. It is possible for > somebody to quickly explain this situation? Message follows; > vacuumdb: vacuuming of table "scho

[GENERAL] ERROR: tuple concurrently updated

2006-11-04 Thread Russell Smith
Hello, I got this error the other day, I was under the impression that vacuum could get a concurrently updated tuple. I could be wrong. It is possible for somebody to quickly explain this situation? Message follows; vacuumdb: vacuuming of table "school.person" in database "sqlfilter" failed

Re: [GENERAL] Timeout Value on network error

2006-11-04 Thread Michael Fuhr
On Mon, Oct 30, 2006 at 11:46:01AM -0800, [EMAIL PROTECTED] wrote: > We're using a remote Postgres server to view video data. It works > well, but we're having a hard time making our app robust when the > network fails. For example, PQexec does not return consistently when > the cable is disconne

Re: [GENERAL] How to get joins to work

2006-11-04 Thread Michael Glaesemann
On Nov 4, 2006, at 5:44 , Anonymous wrote: Please note that natural joins may be dangerous in production code. See the following thread for more detailed information... http://forums.oracle.com/forums/thread.jspa?threadID=440287 All that thread shows is that people are using natural join w

Re: [GENERAL] Geometric Datatypes

2006-11-04 Thread Bob Pawley
I am looking at PostgreSql native geometry. I am wondering if it can be used in conjunction with a basic drawing package. If so, is there a recommended drawing package to use? Are there any examples of this type of use? Bob - Original Message - From: "Michael Fuhr" <[EMAIL PROTE

Re: [GENERAL] opening a channel between two postgreSQL-servers?

2006-11-04 Thread Michael Fuhr
On Sat, Nov 04, 2006 at 10:12:00PM +0100, stig erikson wrote: > a handy thing in mysql is FEDERATED tables that allows one to open a > channel from one MySQL-server to another MySQL-server. > it helps a lot when writing stored procedures that transfer data to other > servers. you can do the trans

Re: [GENERAL] Geometric Datatypes

2006-11-04 Thread Michael Fuhr
On Sat, Nov 04, 2006 at 05:01:12PM -0800, Bob Pawley wrote: > What is an example of how geometric datatypes are being used? They could be used for simple GIS applications (e.g., storing latitude/longitude as points), although PostGIS would be more suitable for non-trivial needs. Are you asking ab

[GENERAL] help with a query

2006-11-04 Thread Pedro Doria Meunier
Hi all!   This is most certainly a lame question but perhaps someone is gracious enough to lend me a hand… ;-)   I have the following setup in a table:   The first record which is to be found (ok easy enough :D) with a timestamp meets a certain condition (ignition off) The following

Re: [GENERAL] Simple stored procedure examples?

2006-11-04 Thread novnov
Thanks again everyone. I thought pgSQL might be case sensitive so I tried all variations (mentioned all of this in prev msgs) Oh...I just figured out what it was. I did created the proc successfully. The pgAdmin III interface saved it, moved it from the procedures hive to the functions hive. Eac

[GENERAL] opening a channel between two postgreSQL-servers?

2006-11-04 Thread stig erikson
Hi. a handy thing in mysql is FEDERATED tables that allows one to open a channel from one MySQL-server to another MySQL-server. it helps a lot when writing stored procedures that transfer data to other servers. you can do the transfer without any extarnal temporary files or external applications

Re: [GENERAL] bytea / large object and image

2006-11-04 Thread Joshua D. Drake
Raymond O'Donnell wrote: > On 4 Nov 2006 at 18:24, Alain Roger wrote: > >> However, i've read that before i must restore the image by exporting >> them to local (on server) file. > > You can use bytea type to store binary data directly in the database - > if it's any use to you, I can send you

Re: [GENERAL] I can not add up columns when using a left outer join. Any ideas as to why?

2006-11-04 Thread Robert Balzli Jr
Thanks Richard! All is working fine now... > -Original Message- > From: Richard Broersma Jr [mailto:[EMAIL PROTECTED] > Sent: Friday, November 03, 2006 10:50 AM > To: robert.balzli > Cc: General PostgreSQL List > Subject: RE: [GENERAL] I can not add up columns when using a left outer > joi

Re: [GENERAL] dividing integers not producing decimal fractions

2006-11-04 Thread rloefgren
Alexander Staubo wrote: > On Nov 2, 2006, at 23:54 , [EMAIL PROTECTED] wrote: > > > I'm trying to produce a decimal fraction by dividing integer fields > > like this fragment of the query: > > > > ...((cntoh0.count + cntoh1.count)/ttl_deptcat.ttlcount) as "Ratio"... > ... > > How do I get fractions

Re: [GENERAL] How to get joins to work

2006-11-04 Thread Anonymous
Please note that natural joins may be dangerous in production code. See the following thread for more detailed information... http://forums.oracle.com/forums/thread.jspa?threadID=440287 ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] explosion of tiny tables representing multiple

2006-11-04 Thread Benjamin Weaver
Dear Martijn, Wow, didn't know about arrays. Did lots of sql, but, as I think about it, that was 7 years ago, and we didn't know about arrays then Are their performance problems with arrays? We will not likely be working with more than 50,000 - 100,000 records. Ben In message <[EMAIL PROTE

[GENERAL] Win32 Silent installer ADDLOCAL is ignored

2006-11-04 Thread testtest
The ADDLOCAL parameter that allows to only install certain modules for the PostgreSQL via the silent installer for win32  does not. It ends up installing everything. Does anyone have a  workaround or fix for this? Here is my command:msiexec /i "postgresql-8.1-int.msi" /qr /log install.log INTERNAL

[GENERAL] Geometric Datatypes

2006-11-04 Thread Bob Pawley
What is an example of how geometric datatypes are being used?   Bob Pawley

Re: [GENERAL] UNICODE and UTF-8

2006-11-04 Thread AgentM
On Nov 4, 2006, at 11:34 , Martijn van Oosterhout wrote: On Sat, Nov 04, 2006 at 04:23:02PM +0100, Alain Roger wrote: however, when i do this, my encoding is in UTF-8 via phpAdmin. UTF8 is a part of UNICODE, but as i'm not sure on how many bits is UNICODE, how can i setup my local DB to UNI

Re: [GENERAL] Issue when inserting Slovak characters in database via PHP code

2006-11-04 Thread Tomi NA
2006/11/4, Alain Roger <[EMAIL PROTECTED]>: Hi, Sorry to cross post this mail but i'm not able to know from where comes my issue. I have a postgreSQL database in UNICODE (UTF-8 in v8.1.4 and UNICODE in v8.0.1). Via my web application i type a sentence in Slovak language and it is stored into DB

[GENERAL] Issue when inserting Slovak characters in database via PHP code

2006-11-04 Thread Alain Roger
Hi,Sorry to cross post this mail but i'm not able to know from where comes my issue.I have a postgreSQL database in UNICODE (UTF-8 in v8.1.4 and UNICODE in v8.0.1).Via my web application i type a sentence in Slovak language and it is stored into DB without any slovak characters. Instead of that, al

Re: [GENERAL] Catch multiple records when doing Select Into

2006-11-04 Thread SunWuKung
Hugh, that's a long way to do that. Thanks for the help. SWK Ketema wrote: > It would be easier if we could see the context in which you are doing > the select into. However I think this may help. Try putting the > select into in a loop: > > declare > _result record; > _rows integer; >

Re: [GENERAL] bytea / large object and image

2006-11-04 Thread Tomas Vondra
> Hi, > > I create a table with some large object (ref: OID) to store some images. > When my PHP will display some data, it will also display the images > stored as OID. > > However, i've read that before i must restore the image by exporting > them to local (on server) file. I'm not sure what y

Re: [GENERAL] bytea / large object and image

2006-11-04 Thread Raymond O'Donnell
On 4 Nov 2006 at 18:24, Alain Roger wrote: > However, i've read that before i must restore the image by exporting > them to local (on server) file. You can use bytea type to store binary data directly in the database - if it's any use to you, I can send you some ASP code that does this. There

Re: [GENERAL] fetching unique pins in a high-transaction

2006-11-04 Thread Scott Ribe
> That second query may not be the best, as it will probably seqscan and > grab all the pins before only returning the first one ... A partial index where USED_BY is null would eliminate the need for the seqscan on the table... -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 72

Re: [GENERAL] Simple stored procedure examples?

2006-11-04 Thread Stephan Szabo
On Sat, 4 Nov 2006, novnov wrote: > > Thanks to both of you for responding. I should have included the code for my > own attempt, at #1 which is just as you suggest: > > update item set itemname = 'fox'; > > I've tried single, and double quoting the table and field names; call caps > to the UPDATE

[GENERAL] bytea / large object and image

2006-11-04 Thread Alain Roger
Hi,I create a table with some large object (ref: OID) to store some images.When my PHP will display some data, it will also display the images stored as OID.However, i've read that before i must restore the image by exporting them to local (on server) file. isn't it easier in this case, to simply s

Re: [GENERAL] UNICODE and UTF-8

2006-11-04 Thread Alain Roger
Yes, my provider has v8.0.1 and i have installed v8.1.4.thanks for your confirmation.Al.On 11/4/06, Martijn van Oosterhout < kleptog@svana.org> wrote:On Sat, Nov 04, 2006 at 04:23:02PM +0100, Alain Roger wrote: > however, when i do this, my encoding is in UTF-8 via phpAdmin.> UTF8 is a part of UNIC

Re: [GENERAL] UNICODE and UTF-8

2006-11-04 Thread Martijn van Oosterhout
On Sat, Nov 04, 2006 at 04:23:02PM +0100, Alain Roger wrote: > however, when i do this, my encoding is in UTF-8 via phpAdmin. > UTF8 is a part of UNICODE, but as i'm not sure on how many bits is UNICODE, > how can i setup my local DB to UNICODE value as my provider has ? As far a postgres is conce

Re: [GENERAL] Simple stored procedure examples?

2006-11-04 Thread Mikko Partio
> novnov wrote: Thanks to both of you for responding. I should have included the code for my own attempt, at #1 which is just as you suggest: update item set itemname = 'fox'; I've tried single, and double quoting the table and field names; call caps to the UPDATE etc, exactly matching the cap

Re: [GENERAL] Simple stored procedure examples?

2006-11-04 Thread Oisin Glynn
novnov wrote: And here is what shows in the SQL window for that proceedure CREATE FUNCTION "proc_UpdateItemName"(IN "strItemName" "varchar") RETURNS void AS $BODY$update item set itemname = 'fox';$BODY$ LANGUAGE 'sql' VOLATILE; The error is always "ERROR relation "item" does not exist". Not us

Re: [GENERAL] Simple stored procedure examples?

2006-11-04 Thread novnov
And here is what shows in the SQL window for that proceedure CREATE FUNCTION "proc_UpdateItemName"(IN "strItemName" "varchar") RETURNS void AS $BODY$update item set itemname = 'fox';$BODY$ LANGUAGE 'sql' VOLATILE; The error is always "ERROR relation "item" does not exist". Not using the param,

Re: [GENERAL] Simple stored procedure examples?

2006-11-04 Thread novnov
Thanks to both of you for responding. I should have included the code for my own attempt, at #1 which is just as you suggest: update item set itemname = 'fox'; I've tried single, and double quoting the table and field names; call caps to the UPDATE etc, exactly matching the capitalization of the

[GENERAL] UNICODE and UTF-8

2006-11-04 Thread Alain Roger
Hi,I tried to reproduce the same DB on my local server as my web provider gave me access.On this DB (from provider) i can see via phpAdmin pages that encoding is setup to UNICODE.after reading some documentation, i've seen that i had to create my DB on my local server like that : create database my

Re: [GENERAL] Simple stored procedure examples?

2006-11-04 Thread Stephan Szabo
On Fri, 3 Nov 2006, novnov wrote: > I'm completely new to pgsql, using 8.1 and pgAdmin III. I'm not finding a lot > of bare bones simple example stored procs that I can learn from. It would be > very helpful if someone could show me some simple code. > > In the pgAdmin interface I've been picking

Re: [GENERAL] PostGIS Binary RPM for Red Hat Linux

2006-11-04 Thread Devrim GUNDUZ
Hello, On Sat, 2006-11-04 at 13:21 +0530, Sandeep Kumar Jakkaraju wrote: > I am unable to find PostGIS Binary RPM for Red Hat Linux ...on the > postgis.org website ... Can somebody point me to the url from where > i can download ...this ?? I am assuming that you want RPMs for RHEL, not RHL. h

Re: [GENERAL] Simple stored procedure examples?

2006-11-04 Thread Shoaib Mir
You can use the following:>>#1 updating ItemName for all rows to 'fox'update tablename set itemname = 'fox';>>#2 updating ItemName for row where ItemID = 2 to 'fox'update tablename set itemname = 'fox' where itemid = 2; >>#3 updating ItemName for row where ItemID = 3 to a param value passed in\set