Re: [GENERAL] Humor me: Postgresql vs. MySql (esp. licensing)

2003-10-08 Thread Shridhar Daithankar
[EMAIL PROTECTED] wrote: One of my friend lost data with mysql yesterday.. The machine was taken down for disk upgrade and mysql apperantly did not commit the last insert.. OK he was using myisam but still..:-) It sounds like that is more a problem with improper operating protocols than with t

Re: [GENERAL] "select count(*) from contacts" is too slow!

2003-10-08 Thread Ang Chin Han
Christopher Browne wrote: A long time ago, in a galaxy far, far away, [EMAIL PROTECTED] wrote: MySQL can tell you from it's index because it doesn't care if it gives you the right number or not. Under what circumstances would MySQL give the wrong number? It would give the wrong number under _e

Re: [GENERAL] Humor me: Postgresql vs. MySql (esp. licensing)

2003-10-08 Thread Alvaro Herrera
On Wed, Oct 08, 2003 at 07:03:19PM -0500, [EMAIL PROTECTED] wrote: > Would PG know enough to do a commit regardless of how the database was > shut down? A second question is whether doing a commit is what the user > or application would always want to have happen, as it could result in a > hal

Re: [GENERAL] "select count(*) from contacts" is too slow!

2003-10-08 Thread Greg Stark
Ang Chin Han <[EMAIL PROTECTED]> writes: > Heck, even using myisam, mysql's count(*)'s still accurate, since all INSERTs, > etc are autocommitted. That's sort of true, but not the whole story. Even autocommitted transactions can be pending for a significant amount of time. The reason it's accura

Re: [GENERAL] Generating a SQL Server population routine

2003-10-08 Thread btober
> In article <[EMAIL PROTECTED]>, > Mike Mascari <[EMAIL PROTECTED]> writes: > >> [EMAIL PROTECTED] wrote: >>> Has some one come up with a similar type script that could be used >>> in a Postgresql database? > >>> The script below was created for a SQLServer database. >>> Thx, >>> -Martin > >> I h

Re: [GENERAL]

2003-10-08 Thread Doug McNaught
[EMAIL PROTECTED] writes: > We are using Postgresql as the backend database for our upcoming software > application. We would like Postgresql to have the following functionalities : > > 1. Standard Error Codes along with textual error messages including error > codes for errors while dumping/r

[GENERAL] Updated plPerl with trigger support available

2003-10-08 Thread Joshua D. Drake
Hello, There is now an updated version of plPerl with trigger support available at the Command Prompt community page. It can be viewed with documentation here: https://www.commandprompt.com/entry.lxp?lxpe=285 Sincerely, Joshua Drake -- Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODB

Re: [GENERAL] Cross database foreign key workaround?

2003-10-08 Thread Joe Conway
David Busby wrote: List, What are the recommended work arounds for cross database foreign keys? As I understand it transactions are not atomic with the TCL method. I have a situation that requires a master database and then a separate database for every subscriber. Subscribers need read/write

Re: [GENERAL] Call for Speakers / Presenters

2003-10-08 Thread Peter Eisentraut
Joshua D. Drake writes: > Master of Ceremonies is a new position that was created by the core (at > least Josh Berkus) > for dealing with speakers. > > There are others, such as Editor-n-chief which is myself, and I am in > charge of soliciting writers > and working with publishers. I find these

[GENERAL] Displaying a float8 as a full-length number

2003-10-08 Thread Grant Rutherford
Hello, I need to get a float8 to display as a number db=# SELECT CAST('0.1' AS float8); float8 1e-05 (1 row) I need this to return 0.1 instead. I know about the to_char function, but this seems to truncate the number after fourteen digits of precision: db=# SELECT CAST('0.

[GENERAL] Humor me: Postgresql vs. MySql (esp. licensing)

2003-10-08 Thread John Wells
Yes, I know you've seen the above subject before, so please be gentle with the flamethrowers. I'm preparing to enter a discussion with management at my company regarding going forward as either a MySql shop or a Postgresql shop. It's my opinion that we should be using PG, because of the full ACID

[GENERAL] problems retrieving images in 7.3.4

2003-10-08 Thread sibusiso xolo
Greetings, I am new to this list. I have a problem with BLOBS using PostgreSQL7.3.4. I used the lo_export utility to insert an image into a trial database. I have not been able to use the lo_export utility to retrieve it. I have done this successfully before using PostgreSQL7.2. Assuming

Re: [GENERAL] Humor me: Postgresql vs. MySql (esp. licensing)

2003-10-08 Thread John Wells
Sorry for the repost again. I emailed the Admin asking to cancel it (I originally posted from a non-subscribed address), but perhaps he missed it. John John Wells said: > Yes, I know you've seen the above subject before, so please be gentle with > the flamethrowers. > > I'm preparing to enter a

Re: [GENERAL] Humor me: Postgresql vs. MySql (esp. licensing)

2003-10-08 Thread Richard Welty
On Wed, 8 Oct 2003 11:28:00 -0400 (EDT) John Wells <[EMAIL PROTECTED]> wrote: > It's my opinion that we should be using PG, because of the full ACID > support, and the license involved. A consultant my company hired before > bringing me in is pushing hard for MySql, citing speed and community > s

Re: [GENERAL] Possible bug on insert

2003-10-08 Thread Shridhar Daithankar
Rick Gigger wrote: No offense taken. I am very meticulous about any software upgrades that I do on my production systems. I'm not quite sure what you mean by "this business since you have no idea what I am actually doing. For all you know I am a boy scout developing a public service web site to

Re: [GENERAL] Humor me: Postgresql vs. MySql (esp. licensing)

2003-10-08 Thread Randal L. Schwartz
> "Shridhar" == Shridhar Daithankar <[EMAIL PROTECTED]> writes: Shridhar> Yeah.. like inserting a biiig number in integer field in a transaction Shridhar> without error and not getting it back after commit.. or accepting Shridhar> '00-00-00 00:00:00' as a valid datetime stamp.. something like

Re: [GENERAL] "select count(*) from contacts" is too slow!

2003-10-08 Thread Christopher Browne
A long time ago, in a galaxy far, far away, [EMAIL PROTECTED] wrote: >> MySQL can tell you from it's index because it doesn't care if it gives you the >> right number or not. > > Under what circumstances would MySQL give the wrong number? It would give the wrong number under _every_ circumstance

[GENERAL] Humor me: Postgresql vs. MySql (esp. licensing)

2003-10-08 Thread John Wells
Yes, I know you've seen the above subject before, so please be gentle with the flamethrowers. I'm preparing to enter a discussion with management at my company regarding going forward as either a MySql shop or a Postgresql shop. It's my opinion that we should be using PG, because of the full ACID

Re: [GENERAL] Humor me: Postgresql vs. MySql (esp. licensing)

2003-10-08 Thread John Wells
Oliver Elphick said: > Unless they actually attach extra conditions to the GPL (i.e. "This > product is licensed under GPL with the following extra conditions...") > this is rubbish. The GPL allows you to do what you like with the > software internally; its restrictions only apply to further > dis

Re: [GENERAL] Humor me: Postgresql vs. MySql (esp. licensing)

2003-10-08 Thread Unihost Web Hosting
Hi John, I've been thinking about this for sometime, since a couple of my associates are looking to build a commercial app based around JDBC. The difficulty came when we looked at redistributing a MySQL JDBC driver .jar with the application. From what I can tell, since you distribute the JDB

Re: [GENERAL] Humor me: Postgresql vs. MySql (esp. licensing)

2003-10-08 Thread Shridhar Daithankar
Richard Welty wrote: On Wed, 8 Oct 2003 11:28:00 -0400 (EDT) John Wells <[EMAIL PROTECTED]> wrote: It's my opinion that we should be using PG, because of the full ACID support, and the license involved. A consultant my company hired before bringing me in is pushing hard for MySql, citing speed

Re: [GENERAL] Humor me: Postgresql vs. MySql (esp. licensing)

2003-10-08 Thread Oliver Elphick
On Wed, 2003-10-08 at 16:28, John Wells wrote: > Yes, I know you've seen the above subject before, so please be gentle with > the flamethrowers. > > I'm preparing to enter a discussion with management at my company > regarding going forward as either a MySql shop or a Postgresql shop. > > It's my

Re: [GENERAL] UPDATE and outer joins

2003-10-08 Thread Bruno Wolff III
On Wed, Oct 08, 2003 at 15:40:13 +0100, Harry Broomhall <[EMAIL PROTECTED]> wrote: > Bruno Wolff III writes: > > On Wed, Oct 08, 2003 at 12:23:04 +0100, > > Harry Broomhall <[EMAIL PROTECTED]> wrote: > > >I wonder if anybody could give me a few pointers on a problem I face. > > > > > >

Re: [GENERAL] UPDATE and outer joins

2003-10-08 Thread Harry Broomhall
Bruno Wolff III writes: > On Wed, Oct 08, 2003 at 12:23:04 +0100, > Harry Broomhall <[EMAIL PROTECTED]> wrote: > >I wonder if anybody could give me a few pointers on a problem I face. > > > >I need to do an UPDATE on table A, from an effective left outer join > > on A and another table B

Re: [GENERAL] UPDATE and outer joins

2003-10-08 Thread Bruno Wolff III
On Wed, Oct 08, 2003 at 12:23:04 +0100, Harry Broomhall <[EMAIL PROTECTED]> wrote: >I wonder if anybody could give me a few pointers on a problem I face. > >I need to do an UPDATE on table A, from an effective left outer join > on A and another table B. (This is trying to perform a numb

Re: [GENERAL] install; readline error with 7.3.4

2003-10-08 Thread Alvaro Herrera
On Wed, Oct 08, 2003 at 05:34:32PM +0900, Jean-Christian Imbeault wrote: > On my RH 9.0 linux system when ./configuring 7.3.4 I get an error about > not finding the readline libs, however both the readline and > readline-devel rpms are installed: On some linux redhat-ish distros I think you also

Re: [GENERAL] using copy to load odd characters

2003-10-08 Thread Johnson, Shaunn
Title: RE: [GENERAL] using copy to load odd characters --howdy: --to reiterate the problem, i am simply doing --a copy of a text file into a table: [snip example] testdb> \copy t_test1 from '/var/tmp/results.txt' with delimiter as '|' [/snip example] --the problem was that there wer

[GENERAL] install; readline error with 7.3.4

2003-10-08 Thread Jean-Christian Imbeault
On my RH 9.0 linux system when ./configuring 7.3.4 I get an error about not finding the readline libs, however both the readline and readline-devel rpms are installed: # rpm -qa | grep readline readline-4.3-5 readline-devel-4.3-5 What library/rpm am I missing? The config.log file has this to sa

[GENERAL] UPDATE and outer joins

2003-10-08 Thread Harry Broomhall
I wonder if anybody could give me a few pointers on a problem I face. I need to do an UPDATE on table A, from an effective left outer join on A and another table B. (This is trying to perform a number translation, where the items that need it are rare.) The following points *I think* ar

Re: [GENERAL] refential integrity to multiple tables ??

2003-10-08 Thread Mattias Kregert
No, you don't need a NULL entry in "table_type1" or "table_type2".   When inserting NULL into a column which REFERENCES another table, there is simply no referencing done.   /Mattias       Nagib Abi Fadel wrote: What u suggest here is having a null entry in table TABLE_TYPE1 and TABLE_TY

[GENERAL] Replication Bundled with Main Source.

2003-10-08 Thread Unihost Web Hosting
Hi All, Firstly I've gotta say that I think that PostgreSQL is one of the finest OSS projects out there and full credit to all of those involved. After talking to a couple of other consultants who use Pg, and fully encourage their clients in the enterprise that Pg is a perfectly viable soluti

Re: [GENERAL] refential integrity to multiple tables ??

2003-10-08 Thread Nagib Abi Fadel
What u suggest here is having a null entry in table TABLE_TYPE1 and TABLE_TYPE2. (This does not seem to be right.) That way i would be able to make a referential integrity to each table by creating the table transaction like follows:   CREATE TABLE transaction (     transaction_id,     amount,  

Re: [GENERAL] refential integrity to multiple tables ??

2003-10-08 Thread Nagib Abi Fadel
--- Richard Huxton <[EMAIL PROTECTED]> wrote: > On Wednesday 08 October 2003 06:53, Nagib Abi Fadel > wrote: > > HI, > > > > let's say i have a tansaction table called > TRANSACTION > > (transaction_id,amount,type,type_id) > > > > Let's say a transaction can have multiple types: > TYPE1, TYPE2 for

[GENERAL] How to delete unclosed connections?

2003-10-08 Thread Együd Csaba
Hi All, I've a problem with unclosed connections. Once a client aborts a connection accidentelly (client crash or power failure eg.), it stucks in and postgres won't restart or stop. Is there any way to close unused (dead) connections. I'd guess that some kind of connection timeout option should do

Re: [GENERAL] refential integrity to multiple tables ??

2003-10-08 Thread Richard Huxton
On Wednesday 08 October 2003 06:53, Nagib Abi Fadel wrote: > HI, > > let's say i have a tansaction table called TRANSACTION > (transaction_id,amount,type,type_id) > > Let's say a transaction can have multiple types: TYPE1, TYPE2 for example. > > EACH type has his own definition and his own table. >

Re: [GENERAL] refential integrity to multiple tables ??

2003-10-08 Thread Erik Ronström
Almost everything is possible if you accept to write your own triggers and trigger functions. But there is no standard solution to this problem. There are of course inherited tables, but in the current implementation, foreign key constraints doesn't work very well with them (making them completly

[GENERAL] refential integrity to multiple tables ??

2003-10-08 Thread Nagib Abi Fadel
HI,   let's say i have a tansaction table called TRANSACTION (transaction_id,amount,type,type_id)   Let's say a transaction can have multiple types: TYPE1, TYPE2 for example.   EACH type has his own definition and his own table.   Every transaction has a type that could be type1 or type2 that's why

[GENERAL] Does postgresql support HKSCS ?

2003-10-08 Thread Eric Tan
Hi all,       I would like to setup a database which can accept HKSCS - "Hong Kong Supplementary Character Set". Here is the reference: http://www.info.gov.hk/digital21/eng/hkscs/introduction.html       Can somebody tell me how to do it? I've try database encoding with EUC_TW, SQL_ASCII and UNICOD