Re: [GENERAL] Default value of column not respecting character length or domain restraints.

2007-03-31 Thread Tom Lane
"Justin Dearing" <[EMAIL PROTECTED]> writes: > It seems I can feed a default value to a domain that won't fit in the > underlying base type. I have the domain html_colors as so: > CREATE DOMAIN html_color AS char(7) CHECK (VALUE ~ '^#[A-Fa-f0-9]{6}$'); > I then defined a column of html_colors as

[GENERAL] queries stop using indexes

2007-03-31 Thread Jonathan Vanasco
I have a table with 15 cols , there is an joint index on 5 of them there are ~15million records in the table, and it gets heavy use via update & insert i recently noticed that after a day of use, the index is no longer being respected in some/all queries and a seq scan on the table is use

[GENERAL] Default value of column not respecting character length or domain restraints.

2007-03-31 Thread Justin Dearing
It seems I can feed a default value to a domain that won't fit in the underlying base type. I have the domain html_colors as so: CREATE DOMAIN html_color AS char(7) CHECK (VALUE ~ '^#[A-Fa-f0-9]{6}$'); I then defined a column of html_colors as so: ALTER TABLE users ALTER COLUMN profile_color SET

Re: [GENERAL] Instalation problem

2007-03-31 Thread Brian A. Seklecki
Login in as administrator, take ownership using NTFS permissions, and cane it. ~BAS On Sat, 2007-03-31 at 12:26 -0300, Jonathan Barbero wrote: > Hello. >I installed Pg some time ago. Now i desinstalled it and try to > reinstall, but the instalation program can´t finish. It throw a > proble

Re: [GENERAL] VACUUM FULL takes long time to complete

2007-03-31 Thread Bill Moran
"Eric B. Ridge" <[EMAIL PROTECTED]> wrote: > > Hi! We've got a Postgres 8.1.5 installation with a 60GBish database: > > =# select version(); > version > > --- > PostgreSQ

Re: [GENERAL] VACUUM FULL takes long time to complete

2007-03-31 Thread Martijn van Oosterhout
On Sat, Mar 31, 2007 at 03:18:35PM -0400, Eric B. Ridge wrote: > Anyways, we run a VACUUM FULL ANALYZE VERBOSE every night, and it's > now taking 3+ hours to complete. We also have autovacuum turned on > with default settings. This 3+ hour vacuum time is cutting into our > production hours.

Re: [GENERAL] introduction of FK results in no data insert

2007-03-31 Thread Brian A. Seklecki
Please send specific error messages and schemas if possible. ~BAS On Sat, 2007-03-31 at 16:47 -0400, Harpreet Dhaliwal wrote: > Hi, > Upto the point when i don't have FKs in my database, things work fine. > As soon as i put FK in all the tables referencing to a field of one > single table, nothi

[GENERAL] introduction of FK results in no data insert

2007-03-31 Thread Harpreet Dhaliwal
Hi, Upto the point when i don't have FKs in my database, things work fine. As soon as i put FK in all the tables referencing to a field of one single table, nothing is inserted. Is it an indexing issue? Can anyone throw some light on this? ~Harpreet

Re: [GENERAL] Unusual PK contraint error

2007-03-31 Thread Jasbinder Singh Bali
how do u do reindexing? On 3/31/07, Tom Lane <[EMAIL PROTECTED]> wrote: "Jasbinder Singh Bali" <[EMAIL PROTECTED]> writes: > DBD::Pg::st execute failed: ERROR: duplicate key violates unique constraint > "pk_verify_mx" > I don't know whats goin on. Corrupt index maybe? Does REINDEXing the pk

[GENERAL] VACUUM FULL takes long time to complete

2007-03-31 Thread Eric B. Ridge
Hi! We've got a Postgres 8.1.5 installation with a 60GBish database: =# select version(); version --- PostgreSQL 8.1.5 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 4

Re: [GENERAL] Anyone know where I can get an 8.2.3 binary for ubuntu?

2007-03-31 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/31/07 12:48, Joshua D. Drake wrote: > >> H. Maybe I'm just in a grumpy mood today, but that really >> Grinds My Gears. >> >> Anyone who an figure out how to use PostgreSQL can figure out how to >> use apt-build. > > Hardly. I have more tha

Re: [GENERAL] Unusual PK contraint error

2007-03-31 Thread Tom Lane
"Jasbinder Singh Bali" <[EMAIL PROTECTED]> writes: > DBD::Pg::st execute failed: ERROR: duplicate key violates unique constraint > "pk_verify_mx" > I don't know whats goin on. Corrupt index maybe? Does REINDEXing the pk index help? regards, tom lane

Re: [GENERAL] Anyone know where I can get an 8.2.3 binary for ubuntu?

2007-03-31 Thread Leonel
On 4/1/07, Mikko Partio <[EMAIL PROTECTED]> wrote: > Subject says it all. Doing a source compile under Debian or > Debian-like condition is not an option for the end user. They need > an apt-get (the ubuntu equivalent to rpm AFAICT) version. > > Unfortunately, the latest I can find is 8.1.8 > W

[GENERAL] Unusual PK contraint error

2007-03-31 Thread Jasbinder Singh Bali
Hi I have a compostie primary key in my table comprising of 3 fields. My systems tries to enter records in this table for which the combination of these 3 fields is not there at all The new record gets inserted but with the following error being displayed on console DBD::Pg::st execute failed:

Re: [GENERAL] Anyone know where I can get an 8.2.3 binary for ubuntu?

2007-03-31 Thread Joshua D. Drake
H. Maybe I'm just in a grumpy mood today, but that really Grinds My Gears. Anyone who an figure out how to use PostgreSQL can figure out how to use apt-build. Hardly. I have more than my fair share of customers that: 1. Develop on windows (in php) 2. Only use winscp 3. Couldn't configur

Re: [GENERAL] PANIC: unexpected hash relation size

2007-03-31 Thread Tom Lane
Csaba Kalman <[EMAIL PROTECTED]> writes: > Tom Lane writes: >> Hm, what can you say about the data that goes into the three columns >> that have hash indexes? I'm going to try testing this with random data, >> but it'd likely be more useful if I could reproduce your data >> distribution. > [ some

Re: [GENERAL] Anyone know where I can get an 8.2.3 binary for ubuntu?

2007-03-31 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/31/07 11:51, Alexander Staubo wrote: > On Mar 31, 2007, at 12:19, Ron wrote: > > Subject says it all. Doing a source compile under Debian or Debian-like > condition is not an option for the end user. They need an apt-get (the > ubuntu equivale

Re: [GENERAL] Anyone know where I can get an 8.2.3 binary for ubuntu?

2007-03-31 Thread Alexander Staubo
On Mar 31, 2007, at 12:19, Ron wrote: Subject says it all. Doing a source compile under Debian or Debian- like condition is not an option for the end user. They need an apt- get (the ubuntu equivalent to rpm AFAICT) version. Ubuntu has 8.2.3 in the upcoming Feisty distribution; in the mea

Re: [GENERAL] Anyone know where I can get an 8.2.3 binary for ubuntu?

2007-03-31 Thread Hannes Dorbath
Doing a source compile under Debian or Debian-like condition is not an option for the end user. Oh, it is not? Is that because of the outdated tool chain Debian ships with or the user being uncomfortable in typing 3 commands at a shell prompt? Unfortunately, the latest I can find is 8.1.8

[GENERAL] Instalation problem

2007-03-31 Thread Jonathan Barbero
Hello. I installed Pg some time ago. Now i desinstalled it and try to reinstall, but the instalation program can´t finish. It throw a problem and say that i can see the log file. When i want to see it I can´t access to the directory that I created to install Pg. I did this two times. I restart

[GENERAL] Arrays instead of join tables

2007-03-31 Thread William Garrison
I've never worked with a database with arrays, so I'm curious what the advantages and disadvantages of using it are. For example: -- METHOD 1: The "usual" way -- Items table: item_id int, item_data1 ..., item_data2 ... Primary Key = item_id ItemSet table: <-- Join table item_id int,

Re: [GENERAL] Array extraction

2007-03-31 Thread andyk
Hi! Try this one: SELECT a.ug_id, b.ug_users[a.generate_series] FROM (SELECT ug_id, generate_series(1, array_upper(ug_users, 1)) FROM user_group ) AS a, user_group AS b WHERE a.ug_id = b.ug_id; veejar wrote: Hi! I have such table: user_group

Re: [GENERAL] PANIC: unexpected hash relation size

2007-03-31 Thread Csaba Kalman
Tom Lane writes: csaba <[EMAIL PROTECTED]> writes: Here is the CREATE script of the table which is most likely to be one source of the error. The last error happened after an insert into this table. Hm, what can you say about the data that goes into the three columns that have hash indexes? I

[GENERAL] Array extraction

2007-03-31 Thread veejar
Hi! I have such table: user_group - ug_id -> serial primary key ug_users -> int4[] For example table has such rows: ug_id | ug_users ---+-- 1| { 2,5,6 } 2| { 3,4,9 } I want to write SQL-query or write user defined function to get suc

Re: [GENERAL] Anyone know where I can get an 8.2.3 binary for ubuntu?

2007-03-31 Thread Mikko Partio
> Subject says it all. Doing a source compile under Debian or > Debian-like condition is not an option for the end user. They need > an apt-get (the ubuntu equivalent to rpm AFAICT) version. > > Unfortunately, the latest I can find is 8.1.8 > Where's 8.2.3? > What ubuntu version do you have? I

[GENERAL] Anyone know where I can get an 8.2.3 binary for ubuntu?

2007-03-31 Thread Ron
Subject says it all. Doing a source compile under Debian or Debian-like condition is not an option for the end user. They need an apt-get (the ubuntu equivalent to rpm AFAICT) version. Unfortunately, the latest I can find is 8.1.8 Where's 8.2.3? Help? Ron ---(end of