Re: [GENERAL] Is my MySQL Gaining ?

2003-12-29 Thread John Sidney-Woollett
I agree with most of this sentiment. Even knowing SQL and RDBMs reasonably well, there is still a significant effort involved in moving from another RDBMS (in my case Oracle) to postgres. The postgres docs provide much all the detail (in a very concise form). The hard part is putting all the diffe

Re: [GENERAL] Is my MySQL Gaining ?

2003-12-29 Thread John Sidney-Woollett
Apologies, try this link instead: http://miami.int.gu.edu.au/dbs/7016/a85397/state27a.htm#2067717 The previous one required you to be signed with technet - the one above should be viewable by all. John John Sidney-Woollett said: > I agree with most of this sentiment. Even knowing SQL and RDBMs

Re: [pgsql-advocacy] [GENERAL] Is my MySQL Gaining ?

2003-12-29 Thread Chris Travers
Hi all; I am working on an outline for topics that I think should have detailed discussion and/or tutorial items. Unfortunately my laptop is in the shop (bad motherboard) but when it comes back, I will post it. I think that Shrindhar is right-- these things do not belong in the main documentatio

Re: [GENERAL] Is my MySQL Gaining ?

2003-12-29 Thread Casey Allen Shobe
Alex Satrapa (Sunday 28 December 2003 22:16) > Just convince your distribution's My what? I don't use no stinkin' distribution :). > postgresql package maintainer That would be postgresql.org, I know not of binary packages. > "suggests/recommends" portion of the package management metadata. T

Re: [GENERAL] Is my MySQL Gaining ?

2003-12-29 Thread Karsten Hilbert
> I'm in a similar situation. My app is currently PG-only (although I > _might_ be able to get it work with Firebird eventually). Currently I have > to sell Linux to prospective clients in addition to my app. A native > Windows version would make my life a bit easier. Same here. Our "clients" u

Re: [GENERAL] what about uniqueness of inherited primary keys

2003-12-29 Thread Seastian Böck
Andreas wrote: Hello list, what about uniqueness of inherited primary keys ? eg you have : create table objects ( id int4, date_created timestamp(0), primary key (id) ); create table persons ( firstname varchar(100), lastname varchar(100) ) inherits (objects); now ... insert into object

Re: [GENERAL] Is my MySQL Gaining ?

2003-12-29 Thread Ericson Smith
A documentation system like the one over at http://php.net, would be fantastic for Postgresql. There could be lookups based on SQL commands, Functions, and Sitewide Searches. This alone would go a long way to expose PHP to "the masses". In terms of using MySQL or Postgresql, lets all face it, m

Re: [GENERAL] what about uniqueness of inherited primary keys

2003-12-29 Thread Andreas
Seastian Böck wrote: for primary keys there is a simple (and at least working for me) solution as long as you can use the SERIAL type for your primary key. [...] Now the id column gets merged and you should have the desired behaviour. If you want objects.id to get referenced by other tables you ha

[GENERAL] case insensetive UTF-8

2003-12-29 Thread lis
Hi! I need have records on different languages simultaneously on some DB for i18n of my application. Application is multilingual. I decide use for this UNICODE. (UNICODE is encoding for my cluster) But PostgreSQL do not work properly with UNICODE :( I have the following problems: 1) ORDER BY is n

Re: [GENERAL] Is my MySQL Gaining ?

2003-12-29 Thread Jeff Eckermann
This has been an interesting thread, with lots of well considered contributions. The consensus seems to be "PostgreSQL is plenty good enough and more, we just need more people to know it, and an easier learning path". What bothers me a little here is an apparent lack of awareness of the work of t

[GENERAL] An out of memory error when doing a vacuum full

2003-12-29 Thread Sean Shanny
To all, The facts: PostgreSQL 7.4.0 running on BSD 5.1 on Dell 2650 with 4GB RAM, 5 SCSI drives in hardware RAID 0 configuration. Database size with indexes is currently 122GB. DB size before we completed the vacuum full was 150GB. We have recently done a major update to a table, f_pageviews

Re: [GENERAL] Is my MySQL Gaining ?

2003-12-29 Thread Casey Allen Shobe
Chris Travers (Sunday 28 December 2003 20:56) > Also, here in Indonesia, most of these B&B's charge less than $30/night. > Purchasing a new system (often $700 or more) is the equivalent of 23 > room-nights (for a place which typically has fewer than 10 rooms). Used > PC's are out of the question b

Re: [GENERAL] Is my MySQL Gaining ?

2003-12-29 Thread Tom Lane
Tony <[EMAIL PROTECTED]> writes: > ... I DO believe however that a decent introduction to > the more important concepts (Triggers, Fkeys, Stored Proc, Views) that > people from lesser systems (MySQL, Access) may not be familiar with. > What they do, how they help, and why they are generally a go

[GENERAL] Out of memory error when doing an update with IN clause

2003-12-29 Thread Sean Shanny
To all, The facts: PostgreSQL 7.4.0 running on BSD 5.1 on Dell 2650 with 4GB RAM, 5 SCSI drives in hardware RAID 0 configuration. Database size with indexes is currently 122GB. Schema for the table in question is at the end of this email. The DB has been vacuumed full and analyzed. Between

Re: [GENERAL] Is my MySQL Gaining ?

2003-12-29 Thread Dave Cramer
Jeff, I agree; we have an apparent lack of awareness of many things. IMO this is more indicative of a lack of a unified presence than anything else. part of the project is on gborg, part of the project is on advocacy, etc. How would a newbie know to go look for advocacy.postgresql.org ?. Da

Re: [GENERAL] An out of memory error when doing a vacuum full

2003-12-29 Thread Fernando Schapachnik
Is your system using full RAM? Ie, what does limits -a show? Regards. Fernando. En un mensaje anterior, Sean Shanny escribió: > To all, > > The facts: > > PostgreSQL 7.4.0 running on BSD 5.1 on Dell 2650 with 4GB RAM, 5 SCSI > drives in hardware RAID 0 configuration. Database size with inde

Re: [GENERAL] An out of memory error when doing a vacuum full

2003-12-29 Thread Fernando Schapachnik
Take a look at datasize: your processes are allowed a maximum of 512 Mb RAM. Read the handbook to find out how to reconfigure your kernel and the limits (and/or ulimit) man page to tweak the values for individual processes. Good luck! Fernando. En un mensaje anterior, Sean Shanny escribió: > lim

Re: [GENERAL] An out of memory error when doing a vacuum full

2003-12-29 Thread Tom Lane
Sean Shanny <[EMAIL PROTECTED]> writes: > Does anyone have an explanation as to why this might occur? What have you got vacuum_mem set to? Also, what ulimit settings is the postmaster running under? (I'm wondering exactly how large the backend process has grown when it gets the failure.)

Re: [GENERAL] Out of memory error when doing an update with IN clause

2003-12-29 Thread Tom Lane
Sean Shanny <[EMAIL PROTECTED]> writes: > update f_commerce_impressions set servlet_key = 60 where servlet_key in > (68,69,70,71,87,90,94,91,98,105,106); > ERROR: out of memory How many rows will this try to update? Do you have any triggers or foreign keys in this table? I'm wondering if the l

Re: [GENERAL] An out of memory error when doing a vacuum full

2003-12-29 Thread Tom Lane
Fernando Schapachnik <[EMAIL PROTECTED]> writes: > Take a look at datasize: your processes are allowed a maximum of 512 Mb RAM. > Read the handbook to find out how to reconfigure your kernel and the limits > (and/or ulimit) man page to tweak the values for individual processes. 512Mb does not seem

Re: [GENERAL] An out of memory error when doing a vacuum full

2003-12-29 Thread Sean Shanny
From postgresql.conf: # - Memory - shared_buffers = 1 # min 16, at least max_connections*2, 8KB each sort_mem = 64000# min 64, size in KB vacuum_mem = 32767 # min 1024, size in KB The ulimit is set to unlimited as far as I can tell. --sean Tom Lane wr

[GENERAL] Building dynamic contents from database

2003-12-29 Thread Frederic Jolliton
Hi, My problem is rather complex. I will try to explain it clearly (I hope !) Sorry for my poor english. I'm tracking change of state for entities (something than can be monitored.) The set of states are limited (state1 to state5.) A table is storing the current state for each entities, and an

Re: [GENERAL] Out of memory error when doing an update with IN clause

2003-12-29 Thread Sean Shanny
Tom, There are no FK's or triggers on this or any of the tables in our warehouse schema. Also I should have mentioned that this update will produce 0 rows as these values do not exist in this table. We have a dimension table named d_servlet that holds servlet names and id's. This table is

Re: [GENERAL] Time varying referential integrity

2003-12-29 Thread Michael Glaesemann
(BOn Dec 27, 2003, at 8:06 PM, Joe Conway wrote: (B (B> Mike Mascari wrote: (B>> but not 07-Temporal. Is that right? From a cursory search on temporal (B>> support, it appears that there should be a 07-SQL/Temporal group. (B> (B> Your correct -- I didn't realize that it was its own spec. A

Re: [GENERAL] what about uniqueness of inherited primary keys

2003-12-29 Thread Sebastian Böck
Andreas wrote: Seastian Böck wrote: for primary keys there is a simple (and at least working for me) solution as long as you can use the SERIAL type for your primary key. [...] Now the id column gets merged and you should have the desired behaviour. If you want objects.id to get referenced by othe

Re: [GENERAL] simple auto-updating timestamp ?

2003-12-29 Thread Andreas
D. Dante Lorenso wrote: You can do this by adding a trigger to your table. Just define the trigger to be invoked on INSERT and UPDATE for your table. The trigger definition would look something like this: [...] Thanks. So far that works for one table. Can I have this behaviour somehow inherit

Re: [GENERAL] An out of memory error when doing a vacuum full

2003-12-29 Thread Tom Lane
Sean Shanny <[EMAIL PROTECTED]> writes: > sort_mem = 64000# min 64, size in KB You might want to lower that; a complex query could easily use several times sort_mem. Whether this is the immediate source of your problem with the other query is hard to tell. > vacuum_mem = 32767

Re: [GENERAL] Out of memory error when doing an update with IN clause

2003-12-29 Thread Tom Lane
Sean Shanny <[EMAIL PROTECTED]> writes: > There are no FK's or triggers on this or any of the tables in our > warehouse schema. Also I should have mentioned that this update will > produce 0 rows as these values do not exist in this table. Hm, that makes no sense at all ... > Here is output fr

Re: [GENERAL] An out of memory error when doing a vacuum full

2003-12-29 Thread Sean Shanny
Tom, I will lower the sort_mem and see what happens. :-) I agree that we probably pushed the limits of a vacuum full with the size table we had and the large percentage of change in the table. We did NOT run any vacuum jobs during the update process, that my have helped to allow the updates t

Re: [GENERAL] Out of memory error when doing an update with IN clause

2003-12-29 Thread Sean Shanny
Tom, As you can see I had to reduce the number of arguments in the IN clause to even get the explain. explain update f_commerce_impressions set servlet_key = 60 where servlet_key in (68,69,70,71,87,90,94);

Re: [pgsql-advocacy] [GENERAL] Is my MySQL Gaining ?

2003-12-29 Thread Joshua D. Drake
Hello, How about just a "Getting Started with PostgreSQL" guide... Python is like this. They have the "real" documentation but they also have a introductory tutorial. We could have a brief document (100 pages or less) that talks about the basic concepts of PostgreSQL... Sincerely, Joshua D.

Re: [GENERAL] Is my MySQL Gaining ?

2003-12-29 Thread Keith C. Perry
Quoting Shridhar Daithankar <[EMAIL PROTECTED]>: > On Monday 29 December 2003 12:47, Tom Lane wrote: > > Shridhar Daithankar <[EMAIL PROTECTED]> writes: > > > That is right. but that fact remains that postgresql documentation is > > > just sufficient. If you read the manual and follow it religousl

Re: [GENERAL] Building dynamic contents from database

2003-12-29 Thread Scott Ribe
> name | state | from_date | to_date > > foo | state2 | | > foo | state1 | | > bar | state4 | | > ... > foo | state3 | | I would consider using only 1 table, where a NULL to_date indicates the current state, and you have a compound inde

Re: [GENERAL] Is my MySQL Gaining ?

2003-12-29 Thread Keith C. Perry
Quoting "Joshua D. Drake" <[EMAIL PROTECTED]>: > > >This concerns me. This is the second time recently someone has said > something > >is NOT documented and it it turn out it is. > > > >So my question is (no offense to anyone) are the web sites not "clear" > enough to > >find information quickly

Re: [GENERAL] Is my MySQL Gaining ?

2003-12-29 Thread Ericson Smith
The documentation needs to be opened up and interlinked a lot more. For instance, one of the things that makes the PHP site work well, is linking to related functions at the end of each function's description, eg: http://us2.php.net/manual/en/function.pg-fetch-all.php However, check our PG docum

Re: [pgsql-advocacy] [GENERAL] Is my MySQL Gaining ?

2003-12-29 Thread Joshua D. Drake
How would this differ from the existing Tutorial? Well, for one it would tell the user how to start postgresql ;) Yes I know that it provides a link to chapter 14 but IMHO the tutorial should be inclusive. New users don't want to jump all over a 1000 page document to figure out how to just sta

Re: [GENERAL] Is my MySQL Gaining ?

2003-12-29 Thread Bruno Wolff III
On Mon, Dec 29, 2003 at 14:31:43 -0500, "Keith C. Perry" <[EMAIL PROTECTED]> wrote: > > Shridhar, > > I tend to agree with you. I personally think the docs are very good and have > the techical depth warranted for a product like PostgreSQL. On the other hand > for the ad & m (advocacy and mar

Re: [GENERAL] Any way to disable backslash as a string literal escape character?

2003-12-29 Thread Tom Lane
"Grant Allen" <[EMAIL PROTECTED]> writes: > Basically, I want to turn off backslash ( \ ) as an escape character > in string literals. No can do without hacking backend code. But why are you more concerned about backslash than, say, single-quote (')? I cannot envision any way of embedding arbitr

Re: [GENERAL] Out of memory error when doing an update with IN clause

2003-12-29 Thread Sean Shanny
Tom, We can give you access to the machine Tom. We need to know what sort of access you require. Since I don't have the ability to correspond with you via email due to the earthlink filter you have on could you send me another email address privately or a phone number or smoke signal so we c

Re: [GENERAL] Is my MySQL Gaining ?

2003-12-29 Thread Bret Busby
On Sun, 28 Dec 2003, Keith C. Perry wrote: > > Admittedly this deterrent won't stop a determined newbie from finding > > what they are after, but I'm sure there are some folk who would just > > assume that postgres is deficient in this area. Note some previous posts > > from others which demonstra

Re: [GENERAL] Is my MySQL Gaining ?

2003-12-29 Thread Chris Travers
"Ericson Smith" <[EMAIL PROTECTED]> Wrote: > A documentation system like the one over at http://php.net, would be > fantastic for Postgresql. There could be lookups based on SQL commands, > Functions, and Sitewide Searches. This alone would go a long way to > expose PHP to "the masses". > Here is

Re: [pgsql-advocacy] [GENERAL] Is my MySQL Gaining ?

2003-12-29 Thread Bret Busby
On Mon, 29 Dec 2003, Jeff Eckermann wrote: > > Isn't this what books are supposed to be for? i.e. to > fill in the gaps or provide the coverage, tips, howtos > etc. etc. that no-one really expects formal > documentation to cover. There are quite a few good > books out there, including two access

Re: [pgsql-advocacy] [GENERAL] Is my MySQL Gaining ?

2003-12-29 Thread Bret Busby
On Mon, 29 Dec 2003, Martin Marques wrote: > > I haven't read the latest review of Bruce's book, but I can recall that the > original version started with: > > In this chapter, you will learn how to connect to the database server and > issue simple commands to the POSTGRESQL server. > > At t

Re: [GENERAL] Any way to disable backslash as a string literal escape character?

2003-12-29 Thread Grant Allen
Tom, The big difference ... all DBs (at least, the ones I listed, including PostgreSQL) support the single quote as it's own escape character - so no difference when it comes to app porting (yes, PostgreSQL has the \' method as well, but '' works across the board). The big P's atypical handing

Re: [GENERAL] Is my MySQL Gaining ?

2003-12-29 Thread Bret Busby
On Sat, 27 Dec 2003, Chris Travers wrote: > Date: Sat, 27 Dec 2003 18:44:48 +0700 > From: Chris Travers <[EMAIL PROTECTED]> > To: Marc G. Fournier <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], > [EMAIL PROTECTED] > Subject: Re: [GENERAL] Is my MySQL Gaining ? > > > In s