[GENERAL] case insensitive match in unicode

2006-03-27 Thread SunWuKung
I would need to do case insensitive match against a field that contains text in different languages - Greek, Hungarian, Arabic etc. The db encoding is UTF8. So far I found no way to achieve that. I tried converting both strings to the same case and using ~* , but neither worked. Does anybody

Bug? was: Re: [GENERAL] ERROR: could not convert UTF8 character to ISO8859-1

2006-03-27 Thread JP Glutting
This is reproducible, and I think it is a bug, because I have the problem not only with data backed up from Postgres 8.0 and restored to Postgres 8.1, but with data generated in Postgres 8.1. It is reproducible, at least on Windows XP. Here is a table that I backed up from Postgres 8.0. It can

Re: [GENERAL] case insensitive match in unicode

2006-03-27 Thread Martijn van Oosterhout
On Mon, Mar 27, 2006 at 11:31:17AM +0200, SunWuKung wrote: I would need to do case insensitive match against a field that contains text in different languages - Greek, Hungarian, Arabic etc. The db encoding is UTF8. So far I found no way to achieve that. I tried converting both strings to

[GENERAL] Error backing up database (Unicode)

2006-03-27 Thread JP Glutting
I get this error when trying to back up a database in Postgres 8.1 that I was able to back up from Postgres 8.0 and restore into Postgres 8.1: C:\Archivos de programa\PostgreSQL\8.1\bin\pg_dump.exe -i -h localhost -p 5432 -U z2233935 -F c -b -v -f C:\Documents and

Re: [GENERAL] case insensitive match in unicode

2006-03-27 Thread SunWuKung
In article [EMAIL PROTECTED], kleptog@svana.org says... On Mon, Mar 27, 2006 at 11:31:17AM +0200, SunWuKung wrote: I would need to do case insensitive match against a field that contains text in different languages - Greek, Hungarian, Arabic etc. The db encoding is UTF8. So far I

[GENERAL] What to index to speed up my UNION views?

2006-03-27 Thread Ashley Moran
I had a bright idea that has not worked quite as well as I thought. We have a web sites for selling cars that we are trying to expand to vans, bikes etc. We get a datafeed containing prices and technical data updated nightly (for cars it's about 2.3GB, others are smaller). This comes into SQL

Re: [GENERAL] What to index to speed up my UNION views?

2006-03-27 Thread Martijn van Oosterhout
On Mon, Mar 27, 2006 at 11:44:00AM +0100, Ashley Moran wrote: I had a bright idea that has not worked quite as well as I thought. We have a web sites for selling cars that we are trying to expand to vans, bikes etc. We get a datafeed containing prices and technical data updated nightly

[GENERAL] Inheritance

2006-03-27 Thread Paolo Sala
Hi, I'm new on postgres and I've just installed postgres 7.4.7 on a debian sarge. I'm interested on using inheritance. I've tried a simple code: CREATE TABLE t_main ( id serial primary key ); CREATE TABLE t_derived1 ( field1 varchar(128)default NULL )

[GENERAL] Converting a database from LATIN1 to UTF-8

2006-03-27 Thread Tormod Omholt-Jensen
We are upgrading our systems to handle new languages and therefore we need to change the encoding of our postgres database from LATIN1 to UTF-8. I have pg_dumped the database and imported it into the new UTF-8 base. It seems like this worked just fine. Can anyone confirm that this is the

Re: [GENERAL] case insensitive match in unicode

2006-03-27 Thread Martijn van Oosterhout
On Mon, Mar 27, 2006 at 12:45:05PM +0200, SunWuKung wrote: This sounds like a very interesting concept. It wouldn't be 'case insensitive' just insensitive. The way I imagine it now is a special case of the ~ function. I create matchgroups in a table and check each character if it is in the

Re: [GENERAL] Converting a database from LATIN1 to UTF-8

2006-03-27 Thread Martijn van Oosterhout
On Mon, Mar 27, 2006 at 01:32:33PM +0200, Tormod Omholt-Jensen wrote: We are upgrading our systems to handle new languages and therefore we need to change the encoding of our postgres database from LATIN1 to UTF-8. I have pg_dumped the database and imported it into the new UTF-8 base. It

Re: [GENERAL] When does a check constraint execute?

2006-03-27 Thread Jim C. Nasby
On Fri, Mar 24, 2006 at 11:25:35AM -0700, [EMAIL PROTECTED] wrote: test-# $$ select not exists test$# (select * from test_dates t1 test$# where 1 ( select count(*) from test_dates t2 test$# where (t1.from_date, t1.to_date) overlaps test$#

Re: [GENERAL] PostgreSQL support on Redhat Advance Server 2.1

2006-03-27 Thread Jim C. Nasby
On Fri, Mar 24, 2006 at 11:54:29PM -0800, Leon Pu wrote: --- Tom Lane [EMAIL PROTECTED] wrote: Joshua D. Drake [EMAIL PROTECTED] writes: No there is not. I actually suggest, considering your ancient version of RedHat that you install from source. Better yet, install a more

Re: [GENERAL] experiences needed - how does Itanium2/1.5GHz(4MB) compare to AMD and Intel CPUs as far as Postgresql is concerned

2006-03-27 Thread Jim C. Nasby
On Sat, Mar 25, 2006 at 08:11:22PM +0100, Tomaz Borstnar wrote: Hello! First tried some searching around, but did not find anything useful so I gave up and decided to ask here... I am wondering how do pair of 1.5GHz Itanium2(4MB cache) stack up against pair of AMD or Intel

Re: [GENERAL] PostgreSQL support on Redhat Advance Server 2.1

2006-03-27 Thread Devrim GUNDUZ
Hi, On Mon, 2006-03-27 at 06:03 -0600, Jim C. Nasby wrote: I'd hope that RH would support at least the most recent version of 7.4, since presumably that's part of what they pay Tom for... Just understand that 7.4 is approaching end-of-life. (Presumably so is RHEL2...) RH won't support a

Re: [GENERAL] A place to post pgbench results

2006-03-27 Thread Jim C. Nasby
On Sat, Mar 25, 2006 at 01:07:02PM -0800, Just Someone wrote: After exchanging a few emails regarding pgbench in the list, I was thinking it'll be cool to have a place to post pgbench resulats from all over the place. Just so people can get an idea of what others are getting. If more people

Re: [GENERAL] pg 8.1.2 performance issue

2006-03-27 Thread Jim C. Nasby
On Sun, Mar 26, 2006 at 11:27:33AM -0500, Matthew T. O'Connor wrote: The table has 6800 rows over 18000 pages, and is getting a minimum of many tens of thousands of updates per day with queries like this: If you're updating that much, how often are you running 'analyze'? Are you running

Re: [GENERAL] ambulkdelete

2006-03-27 Thread Jim C. Nasby
On Sun, Mar 26, 2006 at 08:30:44PM +0200, David Hoksza wrote: Hi, I would like to know, when ambulkdelete is run. I thought that when tuple is deleted so bulkdelete is run, but when I set breakpoint to btbulkdelete, it doesn't stop there. Does it mean, that ambulkdelete is run just when I use

Re: [GENERAL] PANIC: heap_update_redo: no block

2006-03-27 Thread Qingqing Zhou
Alex bahdushka [EMAIL PROTECTED] wrote LOG: REDO @ D/19176610; LSN D/19176644: prev D/191765E8; xid 81148979: Heap - clean: rel 1663/16386/16559898; blk 0 LOG: REDO @ D/19176644; LSN D/191766A4: prev D/19176610; xid 81148979: Heap - move: rel 1663/16386/16559898; tid 1/1; new 0/10 PANIC:

Re: [GENERAL] What to index to speed up my UNION views?

2006-03-27 Thread Jim C. Nasby
On Mon, Mar 27, 2006 at 11:44:00AM +0100, Ashley Moran wrote: I had a bright idea that has not worked quite as well as I thought. We have a web sites for selling cars that we are trying to expand to vans, bikes etc. We get a datafeed containing prices and technical data updated nightly

Re: [GENERAL] PostgreSQL support on Redhat Advance Server 2.1

2006-03-27 Thread Jim C. Nasby
On Mon, Mar 27, 2006 at 03:16:29PM +0300, Devrim GUNDUZ wrote: Hi, On Mon, 2006-03-27 at 06:03 -0600, Jim C. Nasby wrote: I'd hope that RH would support at least the most recent version of 7.4, since presumably that's part of what they pay Tom for... Just understand that 7.4 is

[GENERAL] PostgreSQL's XML support comparison against other RDBMSes

2006-03-27 Thread Ivan Zolotukhin
Hello, Does anybody know good comparison/review article of XML support in major RDMBSes? I know that PostgreSQL's XML capabilities are quite weak, but how far is it from other products? Sincerely, Ivan Zolotukhin ---(end of broadcast)--- TIP 6:

Re: [GENERAL] PostgreSQL's XML support comparison against other RDBMSes

2006-03-27 Thread Jim C. Nasby
On Mon, Mar 27, 2006 at 05:22:40PM +0400, Ivan Zolotukhin wrote: Hello, Does anybody know good comparison/review article of XML support in major RDMBSes? I know that PostgreSQL's XML capabilities are quite weak, but how far is it from other products? For other databases it's probably

Re: Pet-peevishness ([GENERAL] When does a check constraint execute?)

2006-03-27 Thread Alban Hertroys
Jim C. Nasby wrote: On Fri, Mar 24, 2006 at 11:25:35AM -0700, [EMAIL PROTECTED] wrote: pet-peeve If you only want to know if something exists, do NOT use count! test$# (select * from test_dates t1 test$# where EXISTS ( select * from test_dates t2 test$# where

Re: Pet-peevishness ([GENERAL] When does a check constraint execute?)

2006-03-27 Thread Jim C. Nasby
On Mon, Mar 27, 2006 at 03:46:17PM +0200, Alban Hertroys wrote: Jim C. Nasby wrote: On Fri, Mar 24, 2006 at 11:25:35AM -0700, [EMAIL PROTECTED] wrote: pet-peeve If you only want to know if something exists, do NOT use count! test$# (select * from test_dates t1 test$# where

[GENERAL] ACL question

2006-03-27 Thread Tony Caduto
Hi, I might have missed it in the docs, but is there a way for the non super user owner of a db to reset a objects ACL to default? I have been able to do it for users using the super user account by setting the objects acl entry to null. Thanks, Tony ---(end of

[GENERAL] Creating serial ID on Windows.

2006-03-27 Thread Ardian Xharra (Boxxo)
I'm having some troubles restoring a database on Windows and I found this difference between PostgreSQL running on Linux and Windows. When I create a table like this: CREATE TABLE fee_payment1(id_fee_payment1 serial NOT NULL) WITH OIDS; On Linux platform it will be: CREATE TABLE

Re: Bug? was: Re: [GENERAL] ERROR: could not convert UTF8 character to ISO8859-1

2006-03-27 Thread Tom Lane
JP Glutting [EMAIL PROTECTED] writes: This is reproducible, and I think it is a bug, because I have the problem not only with data backed up from Postgres 8.0 and restored to Postgres 8.1, but with data generated in Postgres 8.1. It is reproducible, at least on Windows XP. Here is a table

Re: [GENERAL] Advantages of PostgreSQL over MySQL 5.0

2006-03-27 Thread Scott Marlowe
On Sun, 2006-03-26 at 16:00, Robert Treat wrote: mysql's various user permissions / connection tables are often seen as being more featurefull than postgresql pg_hba system, due to its closer likeness to using sql, potentially simpler syntax, and ability to use remote admin tools. That

Re: [GENERAL] PANIC: heap_update_redo: no block

2006-03-27 Thread Tom Lane
Qingqing Zhou [EMAIL PROTECTED] writes: Actually I tried to simulate your situation, but everytime I got a neat recovery -- You probably filled the test table and then vacuumed within a single checkpoint cycle, so that the replay sequence included loading data into page 1 in the first place.

Re: [GENERAL] Advantages of PostgreSQL over MySQL 5.0

2006-03-27 Thread Scott Marlowe
On Fri, 2006-03-24 at 17:08, Guy Fraser wrote: On Fri, 2006-24-03 at 14:53 -0600, Scott Marlowe wrote: ...snip... Only my most recent personal experience, when I was explaining to the guy from MySQL how frustrating it was that installing MySQL broke my build of PHP and meant I had to use

[GENERAL] How can I known the size of a database, table by table ?

2006-03-27 Thread Bruno Baguette
Hello, I works on a PostgreSQL 8.0.4 database, and I would like to known the size (in bytes, Mbytes or anything else) of that database, for each table. How can I do that ? Thanks in advance ! -- Bruno BAGUETTE ---(end of broadcast)--- TIP 5:

Re: [GENERAL] How can I known the size of a database, table by table

2006-03-27 Thread Leonel Nunez
Bruno Baguette wrote: Hello, I works on a PostgreSQL 8.0.4 database, and I would like to known the size (in bytes, Mbytes or anything else) of that database, for each table. How can I do that ? Thanks in advance ! on contrib package or contrib subdir from the source is dbsize

Re: [GENERAL] How can I known the size of a database, table by table ?

2006-03-27 Thread Andreas Kretschmer
Bruno Baguette [EMAIL PROTECTED] schrieb: Hello, I works on a PostgreSQL 8.0.4 database, and I would like to known the size (in bytes, Mbytes or anything else) of that database, for each table. How can I do that ? I'm not sure if this functions available in 8.0: If not, see in contrib.

Re: [GENERAL] How can I known the size of a database, table by table ?

2006-03-27 Thread Shoaib Mir
The space occupied by your database and tables can be found this way:# select oid from pg_database where datname='mybase';oid ---17239(1 row)$ du -hs data/base/17239 13.5 MFor getting a table size to get an approx size you can do the following:SELECT relpages * 8192 AS size_in_bytesFROM

Re: [GENERAL] Advantages of PostgreSQL over MySQL 5.0

2006-03-27 Thread Chris Travers
Scott Marlowe wrote: On Sun, 2006-03-26 at 16:00, Robert Treat wrote: mysql's various user permissions / connection tables are often seen as being more featurefull than postgresql pg_hba system, due to its closer likeness to using sql, potentially simpler syntax, and ability to use remote

Re: [GENERAL] PostgreSQL support on Redhat Advance Server 2.1

2006-03-27 Thread Leon Pu
--- Jim C. Nasby [EMAIL PROTECTED] wrote: On Mon, Mar 27, 2006 at 03:16:29PM +0300, Devrim GUNDUZ wrote: Hi, On Mon, 2006-03-27 at 06:03 -0600, Jim C. Nasby wrote: I'd hope that RH would support at least the most recent version of 7.4, since presumably that's part of what they

Re: [GENERAL] How can I known the size of a database, table by table

2006-03-27 Thread Steve Crawford
Bruno Baguette wrote: Hello, I works on a PostgreSQL 8.0.4 database, and I would like to known the size (in bytes, Mbytes or anything else) of that database, for each table. How can I do that ? Thanks in advance ! This will probably work for you (in bytes - or you could divide by 8

Re: [GENERAL] How can I known the size of a database, table by table ?

2006-03-27 Thread Kevin Murphy
Bruno Baguette wrote: I works on a PostgreSQL 8.0.4 database, and I would like to known the size (in bytes, Mbytes or anything else) of that database, for each table. You've already got several replies. Know that the PG documentation is excellent. If you visit www.postgresql.org, you will

[GENERAL] frustrated by plpgsql procedure

2006-03-27 Thread Dino Vliet
Hi guys, I trying for days to get this simple plpgsql procedure to run but I keep getting this error: psql:pgsql_procedure.txt:15: ERROR: syntax error at or near at character 17 QUERY: copy cancel TO $1 with delimiter as ',' null as '.' CONTEXT: SQL statement in PL/PgSQL function doedit near

Re: [GENERAL] frustrated by plpgsql procedure

2006-03-27 Thread Bricklen Anderson
Dino Vliet wrote: Hi guys, I trying for days to get this simple plpgsql procedure to run but I keep getting this error: psql:pgsql_procedure.txt:15: ERROR: syntax error at or near at character 17 QUERY: copy cancel TO $1 with delimiter as ',' null as '.' CONTEXT: SQL statement in PL/PgSQL

Re: [GENERAL] Advantages of PostgreSQL over MySQL 5.0

2006-03-27 Thread Tom Lane
Chris Travers [EMAIL PROTECTED] writes: Out of curiosity, how hard would it be to change the default maximum length on the name type in PostgreSQL? Change NAMEDATALEN in postgres_ext.h, recompile, re-initdb. I'm not sure why we still define it in postgres_ext.h, because it hasn't been part of

Re: [GENERAL] frustrated by plpgsql procedure

2006-03-27 Thread Dino Vliet
Nope:-( I added it just now and still the same error message!! --- Bricklen Anderson [EMAIL PROTECTED] wrote: Dino Vliet wrote: Hi guys, I trying for days to get this simple plpgsql procedure to run but I keep getting this error: psql:pgsql_procedure.txt:15: ERROR: syntax

Re: [GENERAL] frustrated by plpgsql procedure

2006-03-27 Thread Bricklen Anderson
Dino Vliet wrote: Nope:-( I added it just now and still the same error message!! Have you tried it with your copy command executed dynamically? eg. execute 'copy cancel to location ...'; ---(end of broadcast)--- TIP 1: if posting/reading

Re: [GENERAL] frustrated by plpgsql procedure

2006-03-27 Thread Tom Lane
Dino Vliet [EMAIL PROTECTED] writes: I trying for days to get this simple plpgsql procedure to run but I keep getting this error: You can't ordinarily use a variable to supply a table (or field) name in a plpgsql query; that doesn't work because plpgsql wants to cache a plan for the query. A

[GENERAL] General advice on database/web applications

2006-03-27 Thread Mark Feller
I am developing a small web application. Currently, our web server is sitting outside our firewall (running its own firewall), and the application being developed would let users do things like place orders. My question is...what and where is the database for this? Do I have a small database

Re: [GENERAL] frustrated by plpgsql procedure

2006-03-27 Thread John DeSoi
On Mar 27, 2006, at 2:10 PM, Dino Vliet wrote: Can somebody tell me why my location variable is NOT working as expected? I would like to use it in a loop to create multiple text files which names would be different because of the way I concatenate it with the looping variable. You can't

Re: [Bulk] [GENERAL] General advice on database/web applications

2006-03-27 Thread Ted Byers
I am developing a small web application. Currently, our web server is sitting outside our firewall (running its own firewall), and the application being developed would let users do things like place orders. My question is...what and where is the database for this? What do you mean when you

Re: [GENERAL] frustrated by plpgsql procedure

2006-03-27 Thread Dino Vliet
Ok thanks for now. I understood the problem and what I should do to fix it. Will try that later. Thanks for all the tips and the REALLY FAST answers!! --- John DeSoi [EMAIL PROTECTED] wrote: On Mar 27, 2006, at 2:10 PM, Dino Vliet wrote: Can somebody tell me why my location variable is

Re: [GENERAL] Bug? was: Re: ERROR: could not convert UTF8 character to ISO8859-1

2006-03-27 Thread Vivek Khera
On Mar 27, 2006, at 4:46 AM, JP Glutting wrote: Can anyone reproduce this on Linux or another platform? Is this a known bug? I took your dump and loaded it into a Pg 8.1.3 database on FreeBSD 6 with UTF-8 encoding. Then I did pg_dump on that database and it had no complaints. The

[GENERAL] Recovery in PostgreSql

2006-03-27 Thread Sumita Chatterjee
I have two questions: 1. In Postgresql, what is the name of the exact DATAFILE under the DATA DIRECTORY ? 2. We want to prepare a backup machine (for disaster management) by passing only the ARCHIVEDIR directory from another online machine - both the machines have Postgresql installed. We have

Re: [GENERAL] invalid page header

2006-03-27 Thread Jo De Haes
Tom Lane wrote: Qingqing Zhou [EMAIL PROTECTED] writes: Jo De Haes [EMAIL PROTECTED] wrote CETERROR: XX001: invalid page header in block 22182 of relation dunn_main I suppose there is no system error happens during the period (like lost power). Can you attach the gdb at b bufmgr.c:257

[GENERAL] donations

2006-03-27 Thread Richard Broersma Jr
Are donations made to http://www.postgresql.org/about/donate tax deductible? ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] donations

2006-03-27 Thread Joshua D. Drake
Richard Broersma Jr wrote: Are donations made to http://www.postgresql.org/about/donate tax deductible? No. We are currently working with SPI (Software in the public interest) to resolve this. Sincerely, Joshua D. Drake ---(end of

Re: [Bulk] [GENERAL] General advice on database/web applications

2006-03-27 Thread Joshua D. Drake
Ted Byers wrote: I am developing a small web application. Currently, our web server is sitting outside our firewall (running its own firewall), and the application being developed would let users do things like place orders. My question is...what and where is the database for this? What do

[GENERAL] getting deadlocks on full table lock

2006-03-27 Thread Merlin Moncure
I am getting a deadlock which I can't explain...although maybe somebody else can...here's teh situation: I have a plpgsql function which increments a sequence when called. when the sequence hits a certain threshold, the sequence is reset and a materilized structure (small table) is updated. The

Re: [GENERAL] getting deadlocks on full table lock

2006-03-27 Thread Tom Lane
Merlin Moncure [EMAIL PROTECTED] writes: I am getting a deadlock which I can't explain...although maybe somebody else can...here's teh situation: TRUNCATE requires exclusive lock, and won't release it until end of transaction. Since you've already read something from the target table before

[GENERAL] Issues with restoring

2006-03-27 Thread beer
Hello Folx! We are running into a problem that I wanted to run by the group before I report it as a bug. We have a medium sized database that when dumped creates +4G files within the tar archive. When we restore it seems that pg_restore has a 4G limit for reading files, once it reads 4G of a

Re: [GENERAL] getting deadlocks on full table lock

2006-03-27 Thread Merlin Moncure
On 3/27/06, Tom Lane [EMAIL PROTECTED] wrote: Merlin Moncure [EMAIL PROTECTED] writes: I am getting a deadlock which I can't explain...although maybe somebody else can...here's the situation: TRUNCATE requires exclusive lock, and won't release it until end of transaction. Since you've

Re: [Bulk] [GENERAL] General advice on database/web applications

2006-03-27 Thread Mark Feller
The webserver runs linux and I also have iptables on that server filtering out all but HTTP and SSH traffic. I have not yet implemented the database, and I am VERY reluctant to put the full db outside our main firewall because of the need to protect sensitive info. So my question, is how do the

Re: [GENERAL] Issues with restoring

2006-03-27 Thread Tom Lane
beer [EMAIL PROTECTED] writes: We have a medium sized database that when dumped creates +4G files within the tar archive. When we restore it seems that pg_restore has a 4G limit for reading files, once it reads 4G of a file, it moves on to the next file. Has anyone else experienced this

Re: [Bulk] [GENERAL] General advice on database/web applications

2006-03-27 Thread Merlin Moncure
I have not yet implemented the database, and I am VERY reluctant to put the full db outside our main firewall because of the need to protect sensitive this is natural. One solution is to put 2nd nic on the web server (carefully firewalled) for connections to the database. Theres lots of

Re: [Bulk] [GENERAL] General advice on database/web applications

2006-03-27 Thread Jonel Rienton
I would normally put the database inside my LAN and only accesible from boxes in the DMZ through certain ports (remoting). I usually not let the web application access the database directly. I use business objects through remoting and only have those business objects available to the web

Re: [Bulk] [GENERAL] General advice on database/web applications

2006-03-27 Thread Jonel Rienton
On 3/27/06, Merlin Moncure [EMAIL PROTECTED] wrote: I have not yet implemented the database, and I am VERY reluctant to put the full db outside our main firewall because of the need to protect sensitive this is natural. One solution is to put 2nd nic on the web server (carefully

Re: [GENERAL] Creating serial ID on Windows.

2006-03-27 Thread Chris
Ardian Xharra (Boxxo) wrote: I'm having some troubles restoring a database on Windows and I found this difference between PostgreSQL running on Linux and Windows. When I create a table like this: CREATE TABLE fee_payment1(id_fee_payment1 serial NOT NULL) WITH OIDS; On Linux platform it will be:

Re: [GENERAL] Recovery in PostgreSql

2006-03-27 Thread Chris
Sumita Chatterjee wrote: I have two questions: 1. In Postgresql, what is the name of the exact DATAFILE under the DATA DIRECTORY ? It depends. The subfolders under data are the OID of the database - they are not stored per name. 2. We want to prepare a backup machine (for disaster

[GENERAL] FAQ 1.1

2006-03-27 Thread Michael Talbot-Wilson
How, really, do people pronounce PostgreSQL? I've read the politically correct answer, Post-Gres-Q-L but it's such a mouthful, such a day's work to pronounce, that there must be a real street pronunciation, or a number of them, that are not being confessed to. They say that SQL should be

[GENERAL] Data model question regarding usage of arrays.

2006-03-27 Thread Ricebot
Hi, I'm looking at a very simple database that contains a table of recipes and a table of ingredients with nutritional content. I'd defined the schema as such CREATE TABLE ingredients ( uid integer, ... -- nutritional info ) CREATE TABLE recipes ( uid integer, ingredients

Re: [GENERAL] FAQ 1.1

2006-03-27 Thread Marc G. Fournier
On Tue, 28 Mar 2006, Michael Talbot-Wilson wrote: How, really, do people pronounce PostgreSQL? I've read the politically correct answer, Post-Gres-Q-L but it's such a mouthful, such a day's work to pronounce, that there must be a real street pronunciation, or a number of them, that are not

Re: [GENERAL] FAQ 1.1

2006-03-27 Thread Tom Lane
Michael Talbot-Wilson [EMAIL PROTECTED] writes: How, really, do people pronounce PostgreSQL? I've read the politically correct answer, Post-Gres-Q-L but it's such a mouthful, such a day's work to pronounce, that there must be a real street pronunciation, or a number of them, that are not

Re: [GENERAL] FAQ 1.1

2006-03-27 Thread Douglas McNaught
Michael Talbot-Wilson [EMAIL PROTECTED] writes: How, really, do people pronounce PostgreSQL? Postgres -Doug ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining

Re: [GENERAL] Data model question regarding usage of arrays.

2006-03-27 Thread Ricebot
Solution CREATE TABLE ingredients ( uid integer, ... -- nutritional info ) CREATE TABLE recipes ( uid integer, uid_bridge integer -- uids in bridge table ) CREATE TABLE bridge ( uid integer, uid_ingredients integer -- uids in table ingredients ) rows in recipes table

Re: [GENERAL] Data model question regarding usage of arrays.

2006-03-27 Thread Ricebot
Wait, nm, no need for uid_bridge in recipes ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] FAQ 1.1

2006-03-27 Thread Klint Gore
On Tue, 28 Mar 2006 10:10:15 +0930 (CST), Michael Talbot-Wilson [EMAIL PROTECTED] wrote: How, really, do people pronounce PostgreSQL? we just use postgres. They say that SQL should be pronounced Sequel and I've even met people who do that. I hate that. It's an acronym not a word - you

Re: [GENERAL] FAQ 1.1

2006-03-27 Thread Steve Atkins
On Mar 27, 2006, at 4:40 PM, Michael Talbot-Wilson wrote: Do you have a snappy pronunciation and what is it? I'd be interested in what the babble is at your PostgreSQL site. Externally, to customers, post-gres-kwul. Internally, the database. Cheers, Steve

Re: [GENERAL] FAQ 1.1

2006-03-27 Thread Michael Talbot-Wilson
On Tue, 28 Mar 2006, Klint Gore wrote: They say that SQL should be pronounced Sequel and I've even met people who do that. ... Who's they? The only datbase vendor I've heard call their own product sequel is MS. E.g. Sybex SQL Instant Reference (1993), page 2.

Re: [Bulk] [GENERAL] General advice on database/web applications

2006-03-27 Thread John DeSoi
On Mar 27, 2006, at 4:23 PM, Mark Feller wrote: Maybe a synch is done between webserver database and main database every five minutes, where the main database pulls any new orders, and pushes any updated part lists, pricing etc. to the webserver db? I have implemented a design like

Re: [GENERAL] Data model question regarding usage of arrays.

2006-03-27 Thread David Fetter
On Mon, Mar 27, 2006 at 05:08:58PM -0800, Ricebot wrote: Wait, nm, no need for uid_bridge in recipes Sure there is. If one recipe can contain several ingredients and an ingredient can be in more than one recipe, you need that join table :) Cheers, D (who isn't going to try to design a

Re: [Bulk] [GENERAL] General advice on database/web applications

2006-03-27 Thread Alex Turner
The solution that I have seen typical is to have both webserver and database machine behind a firewall both NATed, with only HTTP and HTTPS ports open on the webserver. SSH is not open, as trusted clients connect via the VPN in the firewall. The database machine, unlike the webserver, will not

[GENERAL] Proposed dbmirror change

2006-03-27 Thread Achilleus Mantzios
hi again i made one mod to dbmirror. 1) I implemented a mechanism to exclude attributes (columns) from dbmirror'ed tables. I added one table CREATE TABLE dbmirror_exclude_attributes ( tblname character varying(100) NOT NULL, attnames text[] NOT NULL ); ALTER TABLE ONLY

[GENERAL] Schema's versus tablespace

2006-03-27 Thread Dick Kniep
Hi list, We have developed a system that is running as an ASP application, currently we are using Postgresql 7.4. For every customer we have a separate schema, and this works OK. Now in version 8, tablespaces were introduced. This summer we are planning to migrate to version 8.1. Question is

Re: [GENERAL] Inheritance

2006-03-27 Thread Paolo Sala
Jebus scrisse in data 03/27/06 19:03: I could be wrong but primary keys and other constraints are not inherited. Thank you very much Jebus; in effect I've found in the mailing list archives a 2003 thread INHERITS and Foreign keys that claim the same problem. Someone (Stephan Szabo)

Re: [GENERAL] Schema's versus tablespace

2006-03-27 Thread Martijn van Oosterhout
On Tue, Mar 28, 2006 at 09:41:46AM +0200, Dick Kniep wrote: Hi list, We have developed a system that is running as an ASP application, currently we are using Postgresql 7.4. For every customer we have a separate schema, and this works OK. Now in version 8, tablespaces were introduced.

Re: [GENERAL] Recovery in PostgreSql

2006-03-27 Thread Simon Riggs
On Mon, 2006-03-27 at 14:55 +0530, Sumita Chatterjee wrote: I have two questions: 1. In Postgresql, what is the name of the exact DATAFILE under the DATA DIRECTORY ? 2. We want to prepare a backup machine (for disaster management) by passing only the ARCHIVEDIR directory from another

Re: [GENERAL] ambulkdelete

2006-03-27 Thread Simon Riggs
On Sun, 2006-03-26 at 20:30 +0200, David Hoksza wrote: Hi, I would like to know, when ambulkdelete is run. I thought that when tuple is deleted so bulkdelete is run, but when I set breakpoint to btbulkdelete, it doesn't stop there. Does it mean, that ambulkdelete is run just when I use

Re: [GENERAL] Schema's versus tablespace

2006-03-27 Thread Dick Kniep
OK, that's cleared, thanks, Now another question related to this. In 7.4.8 I have a schema with the following authorization: CREATE SCHEMA adeuxproductie AUTHORIZATION postgres; GRANT ALL ON SCHEMA adeuxproductie TO postgres; GRANT ALL ON SCHEMA adeuxproductie TO GROUP adeuxproductie; COMMENT