[GENERAL] rule to update view that inserts into log

2008-04-12 Thread Chad Showalter
in this case references more than one row, if more than one row with --the given id already exists in my_audit_table. -- --How do I accomplish what I want to accomplish here? I'd prefer not to use a sp. Thanks, Chad

[GENERAL] pg_dump / load seems really slow..

2008-04-05 Thread Chad
Howdy! I'm trying to build some fixture (test) data for a webapp I'm building for my company. To do this I've taken a dump of data from production, exported it using pg_dump, and load it via psql database file The data that is exported from production is about 25K rows and 12MB. The dump takes

[GENERAL] PostgresSQL vs. Informix

2007-11-28 Thread Chad Hendren
like the presentation you did at CEC?) to help him build his case? This is an urgent request from my customer given that his timeline is relatively short. Any help you can give me will be very appreciated. Thanks, Chad Hendren Original question: Have you seen any studies (either by Sun

Re: Wikipedia on Postgres (was Re: [GENERAL] postgresql vs mysql)

2007-02-25 Thread Chad Wagner
On 2/25/07, Greg Sabino Mullane [EMAIL PROTECTED] wrote: For the record, anyone using wikipgedia deserves the pain they get: it is deprecated. The latest version of MediaWiki itself is what should now be used: it will detect if you have Postgres upon installation. :) Some of us are still

Re: Wikipedia on Postgres (was Re: [GENERAL] postgresql vs mysql)

2007-02-25 Thread Chad Wagner
On 2/25/07, Magnus Hagander [EMAIL PROTECTED] wrote: For the record, anyone using wikipgedia deserves the pain they get: it is deprecated. The latest version of MediaWiki itself is what should now be used: it will detect if you have Postgres upon installation. :) Perhaps the project should

Re: [GENERAL] pgfoundry

2007-02-24 Thread Chad Wagner
/uri.c 2005-07-20 18:49:23.0 -0400 +++ uri/uri.c 2007-02-24 07:16:29.553130168 -0500 @@ -15,6 +15,10 @@ #include liburi/uri.h +#ifdef PG_MODULE_MAGIC +PG_MODULE_MAGIC; +#endif + /* * Commonly used code snippets */ Other than that it appears to still work with 8.2.3. -- Chad

Re: Wikipedia on Postgres (was Re: [GENERAL] postgresql vs mysql)

2007-02-23 Thread Chad Wagner
On 2/23/07, Bill Moran [EMAIL PROTECTED] wrote: I installed wikipgdia for the WPLUG wiki: http://wplug.ece.cmu.edu/wiki/ Isn't that the same wikipgedia that is found at pgFoundry? The only issue I really had the the wikipgedia port is that the codebase is 1.6alpha, and it seemed like it

Re: Wikipedia on Postgres (was Re: [GENERAL] postgresql vs mysql)

2007-02-23 Thread Chad Wagner
On 2/23/07, Bill Moran [EMAIL PROTECTED] wrote: In any case if anyone is interested I was able to reproduce the changes that wikipgedia made and applied those changes (as well as others) all the way up to the 1.6.10 codebase. The only reason I mention this is because 1.6is the only choice

Re: [GENERAL] postgresql vs mysql

2007-02-22 Thread Chad Wagner
On 2/22/07, Martijn van Oosterhout kleptog@svana.org wrote: On Thu, Feb 22, 2007 at 12:05:20PM +1100, Chris wrote: SELECT foo, bar, COUNT(*) FROM baz GROUP BY foo That one actually comes in handy ;) Especially in older versions (4.0) that don't support subselects.. I must say I don't see

Re: [GENERAL] postgresql vs mysql

2007-02-21 Thread Chad Wagner
in it's default configuration. -- Chad http://www.postgresqlforums.com/

Re: [GENERAL] Option to undo last update on table.

2007-02-15 Thread Chad Wagner
. -- Chad http://www.postgresqlforums.com/

Re: [GENERAL] Move data between two databases SQL-ASCII to UTF8

2007-02-08 Thread Chad Wagner
just added the SET client_encoding TO LATIN1; since I knew the source encoding was LATIN1. -- Chad http://www.postgresqlforums.com/

Re: [GENERAL] date comparisons

2007-02-03 Thread Chad Wagner
On 2/3/07, Bruce Momjian [EMAIL PROTECTED] wrote: Would someone please confirm that our behavior in the three queries below matches Oracle's behavior? Here is output from Oracle: Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production With the Partitioning,

Re: [GENERAL] PostgreSQL/FireBird

2007-02-01 Thread Chad Wagner
to work well enough. -- Chad http://www.postgresqlforums.com/

Re: [GENERAL] PostgreSQL 9.0

2007-01-29 Thread Chad Wagner
that is as close as it gets. -- Chad http://www.postgresqlforums.com/

Re: [GENERAL] counting query

2007-01-28 Thread Chad Wagner
key could result in another 100GB of storage requirements. There should be some thought when you are modeling and these are some of the things to consider. I don't see a 10 table join being a major performance penalty, especially when 8 of the tables may be a few MB in size. -- Chad http

Re: [GENERAL] Cannot Restart PostgreSQL-8.1.4

2007-01-24 Thread Chad Wagner
version it used libpq.so.3. -- Chad http://www.postgresqlforums.com/

Re: [GENERAL] show all record between two date after group by and aggrigation...

2007-01-23 Thread Chad Wagner
not, for the date part, the simpler alternative: SELECT CURRENT_DATE + s.s AS DATE FROM generate_series(1, 365) AS s; That's one of the problems with having a couple dozen date/time functions ;). -- Chad http://www.postgresqlforums.com/

Re: [GENERAL] More grist for the PostgreSQL vs MySQL mill

2007-01-22 Thread Chad Wagner
unique. In order to obtain the same results as a subselect you would need to group or distinct, and I would imagine the results would be the same as the IN..SUBSELECT -- Chad http://www.postgresqlforums.com/

Re: [GENERAL] show all record between two date after group by and aggrigation...

2007-01-22 Thread Chad Wagner
-28 | 4 2007-01-29 | 5 2007-01-30 | 0 2007-01-31 | 6 2007-02-01 | 0 2007-02-02 | 7 2007-02-03 | 8 2007-02-04 | 0 2007-02-05 | 9 2007-02-06 | 0 2007-02-07 | 10 2007-02-08 | 0 2007-02-09 | 11 2007-02-10 | 0 2007-02-11 | 12 2007-02-12 | 0 2007-02-13 | 13 2007-02-14 | 0 -- Chad http

Re: [GENERAL]

2007-01-22 Thread Chad Wagner
is a few links discussing the issue: http://sql-info.de/postgresql/postgres-gotchas.html#1_7 http://archives.postgresql.org/pgsql-hackers/2005-01/msg00247.php -- Chad http://www.postgresqlforums.com/

Re: [GENERAL] More grist for the PostgreSQL vs MySQL mill

2007-01-21 Thread Chad Wagner
, hardly production worthy. There also seems to be an increase of chatter about people coming to PostgreSQL because of the actions that MySQL has taken. Just my 2 cents. -- Chad http://www.postgresqlforums.com/

Re: [GENERAL] More grist for the PostgreSQL vs MySQL mill

2007-01-21 Thread Chad Wagner
with BDB embedded in MySQL, but who knows if that is how it was implemented or what. BDB in general seems to perform well. -- Chad http://www.postgresqlforums.com/

Re: PG not rejecting bad dates (was Re: [GENERAL] Finding bogus dates)

2007-01-18 Thread Chad Wagner
type :(. Not to mention how misleading it probably is to use a varchar for a data to the optimizer for calculating selectivity. -- Chad http://www.postgresqlforums.com/

Re: [GENERAL] GUID/UUID Support

2007-01-17 Thread Chad Wagner
can't. Maybe I am oblivious to the reason, but why is there a need for a special data type for GUID/UUIDs? Wouldn't you always be doing an equality anyways? Wouldn't a varchar suffice? -- Chad http://www.postgresqlforums.com/

Re: [GENERAL] Building web sites using a database

2007-01-17 Thread Chad Wagner
you can use PostgreSQL as a backend (if not there is easily 50~60 different content management systems out there ranging from open source to commercial). I certainly wouldn't write your own. -- Chad http://www.postgresqlforums.com/

Re: [GENERAL] Temp Table Within PLPGSQL Function - Something Awry

2007-01-16 Thread Chad Wagner
line 6 at SQL statement postgres=# \d temp_tbl; Did not find any relation named temp_tbl. postgres=# -- Chad http://www.postgresqlforums.com/

Re: [GENERAL] invalid byte sequence for encoding UTF8

2007-01-16 Thread Chad Wagner
tweak the SQL file). -- Chad http://www.postgresqlforums.com/

Re: [GENERAL] Mounting a data dir read only

2007-01-16 Thread Chad Wagner
, Live Journal, etc.). -- Chad http://www.postgresqlforums.com/

Re: [GENERAL] GUID/UUID Support

2007-01-16 Thread Chad Wagner
generator -- Chad http://www.postgresqlforums.com/

Re: [GENERAL] Improve Postgres Query Speed

2007-01-15 Thread Chad Wagner
you. I would suggest posting the table definition (columns indexes), the queries you are running, and the output of EXPLAIN ANALYZE your query here;. -- Chad http://www.postgresqlforums.com/

Re: [GENERAL] How does one perform a case-insenstive query on test or char fields

2007-01-10 Thread Chad Wagner
On 9 Jan 2007 13:44:32 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: SELECT * FROM table WHERE thisfield = 'some text'; How would I rewrite this query to search through the table looking at the text in the column thisfield for the string some text but have it perform a case insensitive

Re: [GENERAL] Postgres Differential backup

2007-01-08 Thread Chad Wagner
I have jotted down some notes on performing a hot backup (which is what Bill is referring you to), and I included a script called pg_hotbackup that automates the relatively simple tasks required to take a snapshot of the cluster data directory.

Re: [GENERAL] slow speeds after 2 million rows inserted

2006-12-31 Thread Chad Wagner
On 12/31/06, Nikola Milutinovic [EMAIL PROTECTED] wrote: 1. There is no difference (speed-wise) between committing every 1K or every 250K rows. It was really some time ago, since I have experimented with this. My las experiment was on PG 7.2 or 7.3. I was inserting cca 800,000 rows. Inserting

Re: [GENERAL] How do I use the backend APIs

2006-02-24 Thread Chad
Thanks Martijn. ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] How do I use the backend APIs

2006-02-22 Thread Chad
Thanks Martijn/Alban, This look interesting. I'll make some time to try this problem out using your approach. I have a few questions like: -Could I skip the FETCH FORWARD and go straight to the FETCH BACKWARD i.e. declare cursor to be at Mal and go backwards from there or is the cursor limited to

Re: [GENERAL] How do I use the backend APIs

2006-02-20 Thread Chad
Firstly thank you to all who have taken the time to reply so far. I need to clarify a few things based on the feedback I have received. 1. I understand the concerns you have about people using internal APIs that the developers are free to change. I also understand the risks I take if I use an

Re: [GENERAL] How do I use the backend APIs

2006-02-17 Thread Chad
In a word: The kind of problems people use Berkeley DB for. People use BDB for more fine grained cursor access to BTrees. Stuff you CANNOT do with SQL. There is a market for this. See their website. I'd like something similar from Postgres so that the data would be stored in a full fledged RDBMS

Re: [GENERAL] I see this as the end of BDB in MySQL without a doubt.

2006-02-16 Thread Chad
/warnings or is he missing something in not understanding pg better? Chad, could you say more about what in the BDB/API is missing and needed in postgres? TJ O'Donnell http://www.gnova.com/ ---(end of broadcast)--- TIP 4: Have you searched our list

[GENERAL] How do I use the backend APIs

2006-02-16 Thread Chad
Hi, In Postgres, is there a C language API which would give me access to BTrees like Berkeley DB does? eg to seek to a particular key/value pair and iterate forward from there? If not whats the nearest thing to this in Postgres? Cheers. ---(end of

[GENERAL] I see this as the end of BDB in MySQL without a doubt.

2006-02-15 Thread Chad
I am not concerned about Sleepycat revoking their open source license for future versions of BDB. I am less concerned about them revoking licenses for current and older releases. That would be impossible. However this deal troubles me and I cant quite put my finger on why. I'll try to tease it

Re: [GENERAL] [SQL] ALTER TABLE ... DROP CONSTRAINT

2003-08-01 Thread Chad Thompson
Hi all! Who can tell me what postgres version supports ALTER TABLE... DROP CONSTRAINT without the need of droping the table to remove a simple coinstraint. (link) \\\!/ 55 11 5080 9283 !_"""_! Elielson Fontanezi (O) (o) PRODAM - Technical

Re: [GENERAL] Application Design and PostgreSQL

2001-07-23 Thread Chad R. Larson
here). Layer your application properly and you can say, We think that would be a mistake, but we can accomodate your need. -crl -- Chad R. Larson (CRL22)[EMAIL PROTECTED] Eldorado Computing, Inc. 602-604-3100 5353 North 16th Street, Suite 400 Phoenix, Arizona 85016

Re: [GENERAL] upgrading postgres from 7.0 to 7.1

2001-07-17 Thread Chad R. Larson
from which you're connecting. For example, if you're running the Apache server on the same machine as the database engine, a line like: local all trust would suffice. -crl -- Chad R. Larson (CRL22)[EMAIL PROTECTED] Eldorado Computing, Inc. 602-604-3100 5353 North 16th

Re: [GENERAL] NULL values

2001-07-17 Thread Chad R. Larson
, but the balance will be zero, and the created field will have the date/time of the insert. Mark Muffett -crl -- Chad R. Larson (CRL22)[EMAIL PROTECTED] Eldorado Computing, Inc. 602-604-3100 5353 North 16th Street, Suite 400 Phoenix, Arizona 85016-3228