Re: [GENERAL] Trigger question: ROW or STATEMENT?

2006-01-26 Thread Patrick Hatcher
that answered my question. Thanks everyone Patrick Hatcher Development Manager Analytics/MIO Macys.com Michael Fuhr <[EMAIL PROTEC

Re: [GENERAL] Trigger question: ROW or STATEMENT?

2006-01-25 Thread Patrick Hatcher
Would I gain any advantage by changing to it to fire after the insert? thanks again for the help Patrick Hatcher Development Manager Analytics/MIO Macys.com 415-422-1610 Doug McNaught

Re: [GENERAL] Trigger question: ROW or STATEMENT?

2006-01-25 Thread Patrick Hatcher
ELSE NEW.cost :=0; NEW.owned :=0; END IF; RETURN NEW; END;' LANGUAGE 'plpgsql' VOLATILE; Patrick Hatcher Development Manager Analytics/MIO Macys.com 415-422-1610 Doug McNaught

[GENERAL] Trigger question: ROW or STATEMENT?

2006-01-25 Thread Patrick Hatcher
ently about 12M. TIA Patrick Hatcher ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

[GENERAL] Slow pgdump

2005-11-22 Thread Patrick Hatcher
large db, the the backup takes only 3.5hrs The other than using the schema switch, there is no compression happening on either dump. Any ideas why this might be happening or where we can check for issues? TIA Patrick Hatcher Development Manager Analytics/MIO Macy

Re: [GENERAL] Data Dictionary generator?

2005-11-02 Thread Patrick Hatcher
Thank you. "select * From information_schema.columns where table_schema = 'public' and table_name = 'mdc_products' order by ordinal_position;" Thanks again. Patrick Hatcher

[GENERAL] Data Dictionary generator?

2005-11-02 Thread Patrick Hatcher
I need to generate a data dictionary for all my tables (name, column, type, etc) in my database. Is there an easy to do this without having to do a \d tablename for each table? tia Patrick ---(end of broadcast)--- TIP 3: Have you checked our ex

[GENERAL] slow update query

2005-08-05 Thread Patrick Hatcher
Pg 7.4.5 I'm running an update statement on about 2 million records using the following query: Update table_A set F1 = b.new_data from table_B b where b.keyfield = table_A.keyfield both keyfields are indexed, yet this job has been running over 3 hours. Is this normal? thanks Pa

Re: [GENERAL] What encoding to use for this error?

2005-04-06 Thread Patrick Hatcher
Thank you. I'll take a look at our data export function. Tom Lane wrote: Patrick Hatcher <[EMAIL PROTECTED]> writes: We're testing moving our data to UNICODE from LATIN1, but when I try to import my data, I get the following error: DBD::Pg::st execute failed:

[GENERAL] What encoding to use for this error?

2005-04-06 Thread Patrick Hatcher
uot;Lladró "Ducks in a Basket"" What encoding should I be using for characters like this? I thought unicode was supposed to handle these types of characters? TIA Patrick Hatcher ---(end of broadcast)--- TIP 7: don't forget t

[GENERAL] What encoding to use for this error?

2005-04-06 Thread Patrick Hatcher
We're testing moving our data to UNICODE from LATIN1, but when I try to import my data, I get the following error: DBD::Pg::st execute failed: ERROR:  Unicode characters greater than or equal to0x1 are not supportedCONTEXT:  COPY bcp_mdc_products, line 120, column description: "Lladró "Ducks in

[GENERAL] is this index bloat?

2005-02-02 Thread Patrick Hatcher
runcated 64 to 64 pages DETAIL: CPU 0.00s/0.00u sec elapsed 0.00 sec. INFO: analyzing "public.kst" INFO: "kst": 64 pages, 919 rows sampled, 919 estimated total rows VACUUM # - Free Space Map - max_fsm_pages = 300 # min max_fsm_relations*16, 6 bytes

Re: [GENERAL] DELETE versus TRUNCATE during pg_dump....

2004-12-21 Thread Patrick Hatcher
. Does this make a difference? Tom Lane wrote: Patrick Hatcher <[EMAIL PROTECTED]> writes: Curious: Why would a DELETE FROM tablename work while a pg_dump is occurring but a TRUNCATE tablename will stay in a lock state until the pg_dump is complete? TRUNCATE requires an exclusive lock

[GENERAL] DELETE versus TRUNCATE during pg_dump....

2004-12-21 Thread Patrick Hatcher
Pg 7.4.5 Curious: Why would a DELETE FROM tablename work while a pg_dump is occurring but a TRUNCATE tablename will stay in a lock state until the pg_dump is complete? About 60% of our tables are refreshed daily from our Filemaker database and we don't care if one or more of these tables are e

Re: [GENERAL] Vacuum hangs

2004-11-09 Thread Patrick Hatcher
Will do thanks. I ended up dropping and recreating the index and that seems to have fixed the problem. Patrick Hatcher Tom Lane

[GENERAL] Vacuum hangs

2004-11-09 Thread Patrick Hatcher
16560 mode        | ShareUpdateExclusiveLock granted     | t TIA Patrick Hatcher

Re: [GENERAL] how to edit a function from psql?

2004-11-04 Thread Patrick Hatcher
Thanks Alvaro. That was what I was looking for. Patrick Hatcher Alvaro Herrera <[EMAIL PROTECTED]> 11/04/04 03:40 PM To "Thomas F.O'Connell" <[EMAIL PROTECTED]> cc Patrick Hatcher <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Subject Re: [GENERAL]

[GENERAL] how to edit a function from psql?

2004-11-04 Thread Patrick Hatcher
How can I view and edit a function in psql?  I have been using PgAdmin to do this but wanted to try the command line TIA Patrick Hatcher

[GENERAL] Number of months

2004-11-03 Thread Patrick Hatcher
;Year', CURRENT_DATE) -date_part('Year', SOMEDATE)) * 12 +date_part('Month', CURRENT_DATE)-date_part('Month',SOMEDATE) TIA Patrick Hatcher

Re: [GENERAL] Explain output question

2004-10-08 Thread Patrick Hatcher
thank you.  I thought it was correct but just wanted to make sure. Patrick Hatcher Macys.Com Tom Lane <[EMAIL PROTECTED]> 10/08/04 11:34 AM To Patrick Hatcher <[EMAIL PROTECTED]> cc [EMAIL PROTECTED] Subject Re: [GENERAL] Explain output question Patrick Hat

[GENERAL] Explain output question

2004-10-08 Thread Patrick Hatcher
g  (cost=0.00..1469685.99 rows=26921450 width=46)                                        Filter: (((fed_div)::text = 'MCE'::text) OR ((fed_div)::text = 'MCW'::text) OR ((fed_div)::text = 'BUR'::text) OR ((fed_div)::text = 'BON'::text) OR ((fed_div)::text = 'RLG'::text)) TIA Patrick Hatcher Macys.Com

[GENERAL] Q: upgrading from 7.4.1 to 7.4.3.

2004-06-28 Thread Patrick Hatcher
I'm about to update a server that is currently using 7.4.1 to 7.4.3. I see that in the instructions for upgrading to 7.4.2 from 7.4.1 it said to either do a dump or follow a set of special instructions. Should I still follow these instruction when I upgrade? TIA Patrick Hatcher Macy

[GENERAL] Prefix operator error to type OID?

2004-03-11 Thread Patrick Hatcher
to update any data within the grid, I get the same error as the above. Everything works fine if I try to SELECT, UPDATE, or DELETE. Any ideas? Patrick Hatcher Macys.Com ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

Re: [GENERAL] error loading shared libraries: libpq.so.3

2003-11-22 Thread Patrick Hatcher
Thanks that did itPatrick Hatcher-Martin Marques <[EMAIL PROTECTED]> wrote: -To: "Patrick Hatcher" <[EMAIL PROTECTED]>, [EMAIL PROTECTED]From: Martin Marques <[EMAIL PROTECTED]>Date: 2003-11-22 03:08PMSubject: Re: [GENERAL] error loading shared libraries: libpq.

[GENERAL] error loading shared libraries: libpq.so.3

2003-11-22 Thread Patrick Hatcher
directory exists. However, if I do a find for this file, I find it in my PG directory: /usr/local/postgresql7.4/lib I'm not sure what to do now. Any suggestions? TIA Patrick Hatcher ---(end of broadcast)--- TIP 7: don't forget to inc

[GENERAL] Pg Dump error

2003-11-21 Thread Patrick Hatcher
ut issue Patrick Hatcher Macys.Com Legacy Integration Developer 415-422-1610 office HatcherPT - AIM ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

[GENERAL] dump schema schema only?

2003-10-29 Thread Patrick Hatcher
to export only schema X from the database? TIA Patrick Hatcher ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Re: [GENERAL] PostgreSQL with MS Query?

2003-10-27 Thread Patrick Hatcher
I'll assume you are on a Windows box. The answer is yes, you can use Excel to pull back data from a Pg database on a Linux box. If you are planning to use MS Query and If you don't have MS Query installed, you will need to install from the disk. You can download the Pg ODBC driver from the Pg site

Re: [GENERAL] PLPERL function error - utf-8 to iso8859-1

2003-10-15 Thread Patrick Hatcher
Ah there in lies the problem. I have my database encoding set to LATIN1 and I have this value stored in my table and can even write SQL to search against it: select * from mdc_products where description ~* '?' Patrick Hatcher Macys.Com Legacy Integration Developer 415-422-1610 office

[GENERAL] Index on timestamp to date field

2003-10-13 Thread Patrick Hatcher
able1 USING btree to_char(field2, 'MM-DD-'); but I get an error message error at or new to_char TIA Patrick Hatcher Macys.Com Legacy Integration Developer 415-422-1610 office HatcherPT - AIM ---(end of broadcast)--- TIP 5: Have you checke

[GENERAL] process hangs using perl?

2003-10-09 Thread Patrick Hatcher
/bash TIA Patrick Hatcher ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

[GENERAL] how to drop table named user

2003-08-21 Thread Patrick Hatcher
ion on how to remove this table? I thought maybe going through Pg Class, but I'm terrified of mucking something else up. TIA Patrick Hatcher ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster