Re: [GENERAL] count (*)

2007-09-17 Thread Albe Laurenz
alonso wrote: I've got it, but I don't know the reason of it. In the database table the records have duplicated and I've two rows for every primary key - with different OIDs. Very strange however... Very strange indeed. Are you positive that there is a primary key constraint on the column?

[GENERAL] postgres catalog files problem

2007-09-17 Thread Josh Harrison
Hi, I noticed that I have too many records in my pg_ catalog files with the same name. For example if I give this query, which checks for the triggers that do not have corresponding tables in the pg_class select * from pg_trigger where tgrelid not in (select relfilenode from pg_class), I get

Re: [GENERAL] postgres catalog files problem

2007-09-17 Thread Tom Lane
Josh Harrison [EMAIL PROTECTED] writes: if I give this query, which checks for the triggers that do not have corresponding tables in the pg_class select * from pg_trigger where tgrelid not in (select relfilenode from pg_class), This query is wrong --- relfilenode is not a join column for any

Re: [GENERAL] postgres catalog files problem

2007-09-17 Thread Josh Harrison
Thanks Tom. I tried it using pg_class.oid and I still have some records which r not in the pg_class files. What can I do about that? (BTW what does relfilenode in pg_class stands for?) Thanks again Josh On 9/17/07, Tom Lane [EMAIL PROTECTED] wrote: Josh Harrison [EMAIL PROTECTED] writes: if I

Re: [GENERAL] postgres catalog files problem

2007-09-17 Thread Erik Jones
On Sep 17, 2007, at 9:02 AM, Josh Harrison wrote: On 9/17/07, Tom Lane [EMAIL PROTECTED] wrote: Josh Harrison [EMAIL PROTECTED] writes: if I give this query, which checks for the triggers that do not have corresponding tables in the pg_class select * from pg_trigger where tgrelid not in

Re: [GENERAL] postgres catalog files problem

2007-09-17 Thread Josh Harrison
Thanks Eric, ll try to explain as much as possible When i try to give this query UPDATE payment SET desc='New description' WHERE payment_id='xyz' I got the error ERROR: could not open relation with OID 672178 This error was consistent for this query and it yielded the same OID every time.

Re: [GENERAL] postgres catalog files problem

2007-09-17 Thread Tom Lane
Josh Harrison [EMAIL PROTECTED] writes: Yes...there is a relation in pg_class with the name 'payment' but its oid is not 672178. So why is it giving me could not open relation with OID 672178 when i try an update statement ? Well, are there any other relations that the UPDATE might need to

[GENERAL] creation of tables with warnings

2007-09-17 Thread SHARMILA JOTHIRAJAH
Hi Sometimes when I create a table with the CREATE TABLE sql command, it creates a table but with some warnings For example, I create this table in Aqua studio as create table foo(col1 varchar2); gives Warnings: --- W (1): --- 0 record(s) affected The table is created. So

Re: [GENERAL] postgres catalog files problem

2007-09-17 Thread Erik Jones
On Sep 17, 2007, at 11:57 AM, Josh Harrison wrote: On 9/17/07, Tom Lane [EMAIL PROTECTED] wrote: Josh Harrison [EMAIL PROTECTED] writes: When i try to give this query UPDATE payment SET desc='New description' WHERE payment_id='xyz' I got the error ERROR: could not open relation with

Re: [GENERAL] postgres catalog files problem

2007-09-17 Thread Erik Jones
On Sep 17, 2007, at 12:31 PM, Josh Harrison wrote: Thanks. Actually Im currently testing oracle to postgres migration with a small dataset. I haven't started working with the real dataset. I wanted to check with a small dataset before I start with the big one. I know the records that I

Re: [GENERAL] creation of tables with warnings

2007-09-17 Thread Scott Marlowe
On 9/17/07, SHARMILA JOTHIRAJAH [EMAIL PROTECTED] wrote: sorry about that. I copied it.This is proper one create table foo(col1 varchar); i use aqua studio Can you copy the error too? Or is it in some kind of popup that makes it hard to do? It just seems odd that you get a warning with

Re: [GENERAL] creation of tables with warnings

2007-09-17 Thread SHARMILA JOTHIRAJAH
sorry about that. I copied it.This is proper one create table foo(col1 varchar); i use aqua studio Thanks Scott Marlowe [EMAIL PROTECTED] wrote: On 9/17/07, SHARMILA JOTHIRAJAH wrote: Hi Sometimes when I create a table with the CREATE TABLE sql command, it creates a table but with some

Re: [GENERAL] postgres catalog files problem

2007-09-17 Thread Josh Harrison
Hi, Yes...there is a relation in pg_class with the name 'payment' but its oid is not 672178. So why is it giving me could not open relation with OID 672178 when i try an update statement ? I use version 8.2. I think the problem started when i manually deleted some rows from the pg_class catalog

Re: [GENERAL] New/Custom DataType - Altering definition / seeing definition in pgAdmin3

2007-09-17 Thread Roberto Spier
Ow Mun Heng escreveu: I've created a new custom datatype eg: create type foo as ( id smallint data1 int data2 int ) to view the datatype in psql I do = \d foo what is the equilvalent on pgadmin3 or any other SQL query tool? Within pgAdmin3: File Option Display tab set Types As i

[GENERAL] Tsearch2 - spanish

2007-09-17 Thread Felipe de Jesús Molina Bravo
Hi I had installed postgresql-8.2.4 and tsearch2 with dictionary spanish. My problem is: prueba=# select to_tsvector('espanol','melón'); ERROR: Affix parse error at 506 line And if execute: prueba=# select lexize('sp','melón'); lexize -

Re: [GENERAL] creation of tables with warnings

2007-09-17 Thread Scott Marlowe
On 9/17/07, SHARMILA JOTHIRAJAH [EMAIL PROTECTED] wrote: Hi Sometimes when I create a table with the CREATE TABLE sql command, it creates a table but with some warnings For example, I create this table in Aqua studio as create table foo(col1 varchar2); gives Warnings: --- W (1):

Re: [GENERAL] strange TIME behaviour

2007-09-17 Thread Raymond O'Donnell
On 15/09/2007 14:53, rihad wrote: I'm still unsure if the timezone issue is at all important when comparing timestamps (greater/less/etc), or when adding intervals to preset dates? Do you have situations where the interval you're dealing with spans a change between winter summer time?

Re: [GENERAL] postgres catalog files problem

2007-09-17 Thread Tom Lane
Josh Harrison [EMAIL PROTECTED] writes: When i try to give this query UPDATE payment SET desc='New description' WHERE payment_id='xyz' I got the error ERROR: could not open relation with OID 672178 Hmm, there apparently *is* a pg_class row for relation 'payment', else you'd not get this

[GENERAL] PostgreSQL Conference Fall 07, all speaker slots filled!

2007-09-17 Thread Joshua D. Drake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I wanted to drop a line and let everyone know that the current list of speakers has been finalized for the conference. The list and their talks can be found here: http://www.postgresqlconference.org/ A general synopsis of each talk will be

Re: [GENERAL] processing urls with tsearch2

2007-09-17 Thread Laimonas Simutis
Thanks for the advice, for right now I went with the second option of preprocessing the text before passing it to the to_tsquery. However I would like to see what it would take to get some of the dictionaries available out there to be hooked into the postgres on windows. Does anyone have any

Re: [GENERAL] postgres catalog files problem

2007-09-17 Thread Josh Harrison
Thanks. Actually Im currently testing oracle to postgres migration with a small dataset. I haven't started working with the real dataset. I wanted to check with a small dataset before I start with the big one. I know the records that I deleted from the pg_class file. so what do i do next? Will it

Re: [GENERAL] New/Custom DataType - Altering definition / seeing definition in pgAdmin3

2007-09-17 Thread Ow Mun Heng
On Mon, 2007-09-17 at 17:28 -0300, Roberto Spier wrote: Ow Mun Heng escreveu: I've created a new custom datatype to view the datatype in psql I do = \d foo what is the equilvalent on pgadmin3 or any other SQL query tool? Within pgAdmin3: File Option Display tab set Types

[GENERAL] Q:Aggregrating Weekly Production Data. How do you do it?

2007-09-17 Thread Ow Mun Heng
Just wondering how everyone is doing aggregration of production data. Data which runs in the vicinity of a few million a week. What are the methods which will effectively provide the min/max/average/count/stdev of the weekly sample size based on different products/software mix etc. and still be

[GENERAL] For index bloat: VACUUM ANALYZE vs REINDEX/CLUSTER

2007-09-17 Thread Phoenix Kiula
The manual is vague. Several threads about this, in language that is ambiguous to me. So a YES/NO question: Q: To get rid of index bloat, is a VACUUM ANALYZE enough? Or must I reindex/cluster indexes? Thanks. ---(end of broadcast)--- TIP 3: Have

Re: [GENERAL] For index bloat: VACUUM ANALYZE vs REINDEX/CLUSTER

2007-09-17 Thread Joshua D. Drake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Phoenix Kiula wrote: The manual is vague. Several threads about this, in language that is ambiguous to me. So a YES/NO question: Q: To get rid of index bloat, is a VACUUM ANALYZE enough? Or must I reindex/cluster indexes? If you overrun your

Re: [GENERAL] For index bloat: VACUUM ANALYZE vs REINDEX/CLUSTER

2007-09-17 Thread Ow Mun Heng
On Mon, 2007-09-17 at 22:14 -0700, Joshua D. Drake wrote: Phoenix Kiula wrote: So a YES/NO question: Q: To get rid of index bloat, is a VACUUM ANALYZE enough? Or must I reindex/cluster indexes? If you overrun your max_fsm_pages, no: else yes; Maybe my english suck, but I don't