Re: [GENERAL] Adventures in Quest for GUI RAD

2005-05-05 Thread Zlatko Matic
Hello. It seems that many people fanatically recommend Delphi, while others fanaticaly despise Delphi. I've sent a question about comparative features of MS Access/Visual Studio/Delphi for working with databases to a newsgroup and people started to quarell instead of argumenting anything ! Inte

[GENERAL] Wht all database profiler / performance monitoring tools are available

2005-05-05 Thread Himanshu Baweja
I have been using system calls like top.. free... vmstat   Are there any better ways by which i monitor the database to get the most out of it in terms of performance Do you Yahoo!? Yahoo! Small Business - Try our new resources site!

Re: [GENERAL] Booleans - Why in Postgres and not in Oracle or Mysql?

2005-05-05 Thread Peter Eisentraut
CSN wrote: > I like Postgres's boolean type - why do you suppose > neither Mysql nor Oracle has bothered to implement it? > Booleans are in the SQL-99 spec. Fear of breaking old applications -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcas

Re: [GENERAL] Unicode and unaccent()

2005-05-05 Thread Peter Eisentraut
Mark Borins wrote: > My problem is that the values like \342 are for LATIN1 type encoding. > I have tried and failed to get this working using the what I think > is the Unicode escaping method \u0032 for example. There is no Unicode escaping method. You need to encode the characters into UTF-8

Re: [GENERAL] Postgres vs Firebird?

2005-05-05 Thread Jim C. Nasby
On Wed, May 04, 2005 at 12:08:47PM -0700, Joshua D. Drake wrote: > Firebird is a nice database but I don't think it can scale as well as > PostgreSQL. IIRC they just added support for SMP. Also, although their > community is very active I do not believe it is as large nor does it > have the comm

Re: [GENERAL] Anyone doing a 8.0.2-x86_64-RHEL4.rpm?

2005-05-05 Thread Bruno Wolff III
On Thu, May 05, 2005 at 15:46:16 -0700, Daniel Browning <[EMAIL PROTECTED]> wrote: > [I posted this recently to ports, but I think this is a more proper location] > > Is anyone working on an 8.0.2 RPM for x86_64 on Red Hat Enterprise > Linux 4? There is a i686 version for RHEL4, and a x86_64 ve

Re: [GENERAL] Adventures in Quest for GUI RAD

2005-05-05 Thread Rich Shepard
On Thu, 5 May 2005, Tony Caduto wrote: Programmers Paradise has delphi in their catalogs... I haven't used any Microsoft or Winduhs software for about eight years now, but I beleive that you can get -- for free -- Qt for winduhs. If you do this, you get the Qt Designer included. This is a GUI GU

Re: [GENERAL] Adventures in Quest for GUI RAD

2005-05-05 Thread Steve Atkins
On Thu, May 05, 2005 at 04:28:43PM -0700, Rich Shepard wrote: > On Thu, 5 May 2005, Tony Caduto wrote: > > >Programmers Paradise has delphi in their catalogs... > > I haven't used any Microsoft or Winduhs software for about eight years > now, > but I beleive that you can get -- for free -- Q

[GENERAL] Anyone doing a 8.0.2-x86_64-RHEL4.rpm?

2005-05-05 Thread Daniel Browning
[I posted this recently to ports, but I think this is a more proper location] Is anyone working on an 8.0.2 RPM for x86_64 on Red Hat Enterprise Linux 4? There is a i686 version for RHEL4, and a x86_64 version for RHEL3, but no combination of the two. Curious, because I would like to upgrade to

Re: [GENERAL] Adventures in Quest for GUI RAD

2005-05-05 Thread Tony Caduto
Programmers Paradise has delphi in their catalogs... If you call borland and tell them you want to do a competive upgrade for the old VB you are using they will let you buy the upgrade to Delphi 2005 PRO. You have to ask. Like I said before you get what you pay for and all this time you have bee

[GENERAL] Adventures in Quest for GUI RAD

2005-05-05 Thread typing80wpm
http://www.microolap.com/products/database/mydbacentral/   I was hoping to find a GUI Rapid Application development for Postgresql similar to the above.  The above is the only thing I could find, but it seems to support only MySQL and not PostgreSQL.  I am so anxious to find such a tool, if it woul

Re: [GENERAL] postgresql replication

2005-05-05 Thread Christopher Browne
Centuries ago, Nostradamus foresaw when [EMAIL PROTECTED] (Scott Marlowe) would write: > On Wed, 2005-05-04 at 21:06, Vlad wrote: >> the number one aim at the moment is to have "always-up-to-date" copy >> of our main DB with minial performance impact on replication > > Have you considered point in

Re: [GENERAL] Slony v. DBMirror

2005-05-05 Thread Grant McLean
On Thu, 2005-05-05 at 14:16 -0400, Jeff - wrote: > One of the biggest things for Slony is that you can install slony, > set things up and it will bring the slave(s) "up to speed". You > don't need to do an initial data dump (I think you still need to load > the schema on the slaves, but not

[GENERAL] "current transaction is aborted, commands ignored until end of transaction block" Error

2005-05-05 Thread Ying Lu
Greetings, Through java - JDBC, trying to do "select * from Table" using "lock table IN SHARE MODE"; Always got this error: "current transaction is aborted, commands ignored until end of transaction block" Some clues about it? Thanks a lot! Emi ---(end of broadcast)-

Re: [GENERAL] Postmaster not reporting number of connections correctly

2005-05-05 Thread A. Mous
No, I don't believe it has anything to do with the time delay. We've done random spot checks in the past (select count(*) from pg_stat_activity) and it's reported zero connections (and obviously, we're connected at the time of the query). This query was issued in a VB app and delivered via ODBC,

[GENERAL] Unicode and unaccent()

2005-05-05 Thread Mark Borins
I am trying to write an unaccent function because I need to do some queries comparing data that has accents and data that does not.   The encoding on my DB is Unicode, so far I have found an unaccent() function by looking in the mail archives it looks like the following:   CREATE FUNCTI

Re: [GENERAL] Booleans - Why in Postgres and not in Oracle or Mysql?

2005-05-05 Thread CSN
--- Dann Corbit <[EMAIL PROTECTED]> wrote: > > why do you suppose > > neither Mysql nor Oracle has bothered to implement > it? > > Probably they just create a domain using a char > which can take on two > values (e.g. 't'/'f' or 1/0). Oracle 10 has a bit > data type (which is a > boolean for all

Re: [GENERAL] Booleans - Why in Postgres and not in Oracle or Mysql?

2005-05-05 Thread Dann Corbit
> -Original Message- > From: [EMAIL PROTECTED] [mailto:pgsql-general- > [EMAIL PROTECTED] On Behalf Of CSN > Sent: Thursday, May 05, 2005 11:57 AM > To: pgsql-general@postgresql.org > Subject: [GENERAL] Booleans - Why in Postgres and not in Oracle or Mysql? > > I like Postgres's boolean ty

Re: [GENERAL] Postgres vs Firebird?

2005-05-05 Thread Joshua D. Drake
Replication is the only thing that remains, and there appears to be commercially viable solutions for that, as well, though we've not yet There are two very popular replication solutions, one of them is OSS which is Slony-I. The other is commercial which is Mammoth PostgreSQL Replicator. imple

[GENERAL] Booleans - Why in Postgres and not in Oracle or Mysql?

2005-05-05 Thread CSN
I like Postgres's boolean type - why do you suppose neither Mysql nor Oracle has bothered to implement it? Booleans are in the SQL-99 spec. CSN __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Re: [GENERAL] Inserting a record into another table ... inside a

2005-05-05 Thread Rich Shepard
On Thu, 5 May 2005, John DeSoi wrote: Sure. I actually started to write that, but then assumed this would be known by anyone who created 300 schemas :). John, Ah, assumptions! :-) It is certainly my preference over worrying about the search_path. But if you are working in 300 schemas with the sam

Re: [GENERAL] Postgres vs Firebird?

2005-05-05 Thread Benjamin Smith
Based on the extensive feedback here, as well as other information from other websites found since asking here, I've decided that I'm still, very happily, a PG user. No significant issues to date - PG has "just worked" for me for 5 years now, and the frustrating limitations (EG: alter table dr

Re: [GENERAL] Inserting a record into another table ... inside a

2005-05-05 Thread John DeSoi
On May 5, 2005, at 11:27 AM, Rich Shepard wrote: Pardon my ignorance, but why wouldn't it work to specify the schema with the table; e.g., update myschema.table1? Sure. I actually started to write that, but then assumed this would be known by anyone who created 300 schemas :). It is certainly

Re: [GENERAL] ECPG - Timestamp to ascii Conversion PG version 7.4

2005-05-05 Thread Dann Corbit
template1=# \d bar Table "public.bar" Column |Type | Modifiers --+-+--- happened | timestamp without time zone | template1=# select happened::varchar from bar; happened - 2005-

Re: [GENERAL] Slony v. DBMirror

2005-05-05 Thread Jeff -
On May 5, 2005, at 10:35 AM, Peter Wilson wrote: I couldn't get it to work - and having tried another couple of solutions I settled on DBMirror which comes with Postgres in the 'contrib' directory. I've had no issues setting up slony. I've even had it running in a 6 node cluster with no i

[GENERAL] ECPG - Timestamp to ascii Conversion PG version 7.4

2005-05-05 Thread Don Laurine
We are currently transitioning to Postgresql 7.4 from Informix. IN ECPG, is there a Postgresql function which will convert the timestamp data type to a string equivalent. INFORMIX has the dtcvasc function but I prefer not to use the -C compatibility option. I rather have a complete port and get aw

Re: [GENERAL] Postmaster not reporting number of connections correctly

2005-05-05 Thread Tom Lane
"A. Mous" <[EMAIL PROTECTED]> writes: > I've been using 8.0 ever since beta 1, and am currently on 8.0.1. I have > noticed (in each version) that the number of records in the pg_stat_activity > table is not always representative of the number of connections to the > server. That is, we have an in

[GENERAL] Postmaster not reporting number of connections correctly

2005-05-05 Thread A. Mous
I've been using 8.0 ever since beta 1, and am currently on 8.0.1. I have noticed (in each version) that the number of records in the pg_stat_activity table is not always representative of the number of connections to the server. That is, we have an installation at a client's site that runs a nigh

Re: [GENERAL] Inserting a record into another table ... inside a

2005-05-05 Thread Rich Shepard
On Thu, 5 May 2005, John DeSoi wrote: However when I update the base table in schema MySchema the trigger tries to insert/update a record in the public schema and not the Current schema (ie the schema of the original table). Is there a system variable for Current Schema ? &. If not what is th

Re: [GENERAL] Postgres, tablespaces, and quotas

2005-05-05 Thread Tom Lane
John Browne <[EMAIL PROTECTED]> writes: > I was just curious about what would happen given the following scenario: > - Unix user has their own tablespace (and corresponding database) > stored in /home/someuser/mydata > - Quotas are enabled on /home > - User reaches their quota, effectively causing

Re: [GENERAL] postgresql replication

2005-05-05 Thread Scott Marlowe
On Wed, 2005-05-04 at 21:06, Vlad wrote: > the number one aim at the moment is to have "always-up-to-date" copy > of our main DB with minial performance impact on replication Have you considered point in time recovery as implemented in 8.0? While it does require some small amount of work to bring

[GENERAL] Slony v. DBMirror

2005-05-05 Thread Peter Wilson
Vlads thread on Slony against PGcluster made me go back to take another look at Slony. I'd tried to get it going back in February when I needed to build some replicated databases. Slony was my first choice because it seemed to be the current 'hot topic'. I couldn't get it to work - and having t

Re: [GENERAL] Inserting a record into another table ... inside a schema

2005-05-05 Thread John DeSoi
On May 5, 2005, at 8:32 AM, Paul Newman wrote: I have a public schema with all my tables in it. I also have a schema for each company that uses our system .. so 300 companies = 300 schemas. One of the tables has a trigger that is trying to insert/update another table that is inside the same sch

[GENERAL] Select of a function that returns a array

2005-05-05 Thread Não use este endereço para mensagens pessoais
Hi guys I'm trying to figure out a way to make this select work even for a wrong value: select mean_and_variancepop('golf', 'temperature'); or select CAST (mean_and_variancepop('golf', 'temperature') AS float(2)); This function return an array the function is: CREATE or replace FUNCTION mean_

Re: [GENERAL] Howto prevent write based on date

2005-05-05 Thread Franco Bruno Borghesi
You could write a trigger like this: CREATE OR REPLACE FUNCTION checkDate() RETURNS TRIGGER LANGUAGE 'plpgsql' AS ' DECLARE limitDate DATE DEFAULT current_date-''1 year''::INTERVAL; BEGIN IF (OLD.date<=limitDate) THEN RAISE EXCEPTION ''Cannot change record.''; END IF; RETURN NEW; END; '; C

Re: [GENERAL] postgresql replication

2005-05-05 Thread Peter Wilson
Christopher Browne wrote: Martha Stewart called it a Good Thing when Peter Wilson <[EMAIL PROTECTED]> wrote: I looked at Slony, which seems to be a current favourite -but I couldn't get it working on my database (claimed my tables didn't have relevant keys - which they do). Slony-I had almost non-

Re: [GENERAL] Howto prevent write based on date

2005-05-05 Thread Adrian Klaver
On Wednesday 04 May 2005 09:35 am, Fmiser wrote: > I'm a newbie to database admin, but I'm not afraid to try - but this one > has me stumped. > > I'm using SQL-Ledger as a front end to postgresql 7.4.2. on (mostly) > Debian Testing, i386. > > My fiscal year is over and I would _like_ to prevent any

[GENERAL] Postgres, tablespaces, and quotas

2005-05-05 Thread John Browne
I was just curious about what would happen given the following scenario: - Unix user has their own tablespace (and corresponding database) stored in /home/someuser/mydata - Quotas are enabled on /home - User reaches their quota, effectively causing only this tablespace to run out of disk space.

Re: [GENERAL] Howto prevent write based on date

2005-05-05 Thread Jeff Eckermann
"Fmiser" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm a newbie to database admin, but I'm not afraid to try - but this one > has me stumped. > > I'm using SQL-Ledger as a front end to postgresql 7.4.2. on (mostly) > Debian Testing, i386. > > My fiscal year is over and I would

Re: [GENERAL] postgresql replication

2005-05-05 Thread Christopher Browne
Martha Stewart called it a Good Thing when Peter Wilson <[EMAIL PROTECTED]> wrote: > I looked at Slony, which seems to be a current favourite -but I > couldn't get it working on my database (claimed my tables didn't have > relevant keys - which they do). Slony-I had almost non-existent > documenta

Re: [GENERAL] Postgres vs Firebird?

2005-05-05 Thread Peter Wilson
Joshua D. Drake wrote: Benjamin Smith wrote: As a long-time user of Postgres, (First started using it at 7.0) I'm reading recently that Firebird has been taking off as a database. Perhaps this is not the best place to ask this, but is there any compelling advantage to using Firebird over Postgres

[GENERAL] Howto prevent write based on date

2005-05-05 Thread Fmiser
I'm a newbie to database admin, but I'm not afraid to try - but this one has me stumped. I'm using SQL-Ledger as a front end to postgresql 7.4.2. on (mostly) Debian Testing, i386. My fiscal year is over and I would _like_ to prevent any changes to the data from last year. I looked/searched in th

Re: [GENERAL] postgresql replication

2005-05-05 Thread Peter Wilson
Vlad wrote: Hello, in need to increase reliability of the service (and perhaps eventually offload main DB server) we are looking to setup replication for the database server. I found two solutions: Slony ( http://gborg.postgresql.org/project/slony1/projdisplay.php ) PGCluster ( http://pgfo

[GENERAL] Inserting a record into another table ... inside a schema

2005-05-05 Thread Paul Newman
Hi, I have a public schema with all my tables in it. I also have a schema for each company that uses our system .. so 300 companies = 300 schemas. One of the tables has a trigger that is trying to insert/update another table that is inside the same schema. So far so good. However when I u

Re: [GENERAL] postgresql replication

2005-05-05 Thread Andrew Sullivan
On Wed, May 04, 2005 at 10:06:03PM -0400, Vlad wrote: > so at the point any of slony and pgcluster works for me, but before I > start messing with any, I wanted to hear real users opninon about > those (or different) packages :) Well, Afilias (my employer) sponsored/sponsors Slony development. We

Re: [GENERAL] can I send execution log into a file.

2005-05-05 Thread Mage
Dinesh Pandey wrote: > I am using Postgres. How can I send execution log into a file. > > > psql -o filename I also recommend: psql -H -e -o filename Mage ---(end of broadcast)--- TIP 7: don't forget to increase your free space map setti

[GENERAL] can I send execution log into a file.

2005-05-05 Thread Dinesh Pandey
I am using Postgres. How can I send execution log into a file.   Testdb=>\i MyCreateScript.sql   Thanks  

Re: [GENERAL] plpython bug

2005-05-05 Thread Mage
Update: it might be not plpython, but similar to the plperl bug I found last time. The script which can produce the bug: create table test (id int, date timestamp); create or replace function trigger_test() returns trigger as $$ plpy.info(TD['new']) return 'MODIFY' $$ language plpytho

[GENERAL] indexes on functions, then modifying functions

2005-05-05 Thread Costin Manda
I have a plpgsql function that I am generating from time to time, like once a week or so. What it does is it compares some phone numbers for certain prefixes and then outputs the phone numbers without the prefixes. First I tried to make the function read from the database the prefixes, but w

Re: [GENERAL] Postgres 8.02 connectivity

2005-05-05 Thread Shaun Clements
Title: RE: [GENERAL] Postgres 8.02 connectivity Hi Richard I worked out what the problem was. I needed an IP Mask(subnet) after the IP. 255.255.255.0 solved that Thanks again for you help!! Kind Regards, Shaun Clements -Original Message- From: Richard Huxton [mailto:dev@archonet

Re: [GENERAL] Postgres 8.02 connectivity

2005-05-05 Thread Richard Huxton
Shaun Clements wrote: Thanks. Firewall was the problem.im going to kill the technician who installed windows :) Im now coming up with a new error. Missing or erroneous pg_hba.conf file. Ive added the following line. Host all all myip trust Try a /32 on the end of the client's ip: hostall

Re: [GENERAL] Postgres 8.02 connectivity

2005-05-05 Thread Richard Huxton
Shaun Clements wrote: Hi All I have been quite content with postgres, until a recent installation on a windows box, in an attempt to setup a new server. There is an option when you install Postgres, to allow other computers to connect to the DB server. I selected that option, so I can connect over

Re: [GENERAL] postgresql replication

2005-05-05 Thread Peter Wilson
Vlad wrote: Hello, in need to increase reliability of the service (and perhaps eventually offload main DB server) we are looking to setup replication for the database server. I found two solutions: Slony ( http://gborg.postgresql.org/project/slony1/projdisplay.php ) PGCluster ( http://pgfoundry.org

[GENERAL] Postgres 8.02 connectivity

2005-05-05 Thread Shaun Clements
Title: [GENERAL] Postgres 8.02 connectivity Hi All I have been quite content with postgres, until a recent installation on a windows box, in an attempt to setup a new server. There is an option when you install Postgres, to allow other computers to connect to the DB server. I selected that