Re: [GENERAL] migrating from MSSQL

2009-05-08 Thread David Fetter
that best fits your needs rather than being tied to one company whose support options may not. Cheers, David. -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider

Re: [GENERAL] limit-offset different result sets with same query

2009-05-08 Thread David Fetter
the order well enough :) Cheers, David. -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via

Re: [GENERAL] limit-offset different result sets with same query

2009-05-08 Thread David Fetter
On Fri, May 08, 2009 at 06:40:33PM -0300, Emanuel Calvo Franco wrote: 2009/5/8 David Fetter da...@fetter.org: On Fri, May 08, 2009 at 06:10:18PM -0300, Emanuel Calvo Franco wrote: Hi all. I'll make this faster. I hace this table and this function: You should only ever assume

Re: [GENERAL] prepared statements and DBD::Pg

2009-05-07 Thread David Fetter
. :) Cheers, David. -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via pgsql-general mailing

Re: [GENERAL] prepared statements and DBD::Pg

2009-05-07 Thread David Fetter
On Fri, May 08, 2009 at 01:02:04AM +0100, Tim Bunce wrote: On Thu, May 07, 2009 at 06:50:11AM -0700, David Fetter wrote: On Thu, May 07, 2009 at 02:31:08PM +0100, Tim Bunce wrote: On Thu, May 07, 2009 at 04:54:06AM +1200, Andrej wrote: WARNING: DBD::Pg now (as of version 1.40) uses

Re: [GENERAL] Yahoo Everest MPP - open source release?

2009-05-06 Thread David Fetter
to the right place on this mailing list. If you want help on other terms--say, non-disclosure agreement--there are plenty of companies including mine, http://www.pgexperts.com/, that will be happy to work with you. Cheers, David. -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415

Re: [GENERAL] PGSQL-to-MYSQL Migration: Error in a 'simple' inner join query

2009-05-04 Thread David Fetter
, but i come from mysql.. and in mysql that query works... For small values of, works. ;) Cheers, David. -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider

Re: [GENERAL] triggers and execute...

2009-04-30 Thread David Fetter
that trick is. Well, you can add in piles of COALESCE, but that way madness lies. Instead, use dollar quoting, the appropriate quote_*() functions, and this: http://wiki.postgresql.org/wiki/PL/pgSQL_Dynamic_Triggers Cheers, David. -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235

Re: [GENERAL] PostgreSQL versus MySQL for GPS Data

2009-04-21 Thread David Fetter
On Tue, Apr 21, 2009 at 08:15:00PM +0100, Peter Childs wrote: Hmm Interestingly OSM have just switched from MySQL to PostgreSQL. Can we get somebody from OSM to talk about this on the record? Cheers, David. -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235 3778 AIM

Re: [DOCS] [GENERAL] Postgresql 8.3X supports Arrays of Composite Types?

2009-04-20 Thread David Fetter
you find all the people who have a common prefix? Answer: Normalize. If you need that answer quickly, you're looking at down time and DDL changes. The questions you ask about the data are impossible to know in advance, so normalized data helps you deal with that. Cheers, David. -- David Fetter da

Re: [GENERAL] Postgresql 8.3X supports Arrays of Composite Types?

2009-04-19 Thread David Fetter
) ); CREATE TABLE person ( name varchar, PRIMARY KEY(name) ) CREATE TABLE person_phone ( name VARCHAR NOT NULL REFERENCES person(name), cod VARCHAR, num VARCHAR, FOREIGN KEY(cod, num) REFERENCES phone(cod, num), PRIMARY KEY(name, cod, num) ); Cheers, David. -- David Fetter

Re: [GENERAL] Migration/Upgrade Problems

2009-04-17 Thread David Fetter
the now-fixed 7.4.25 database * Load that into 8.3.7, and, most importantly, * Build in and enforce upgrades as part of your maintenance cycle. You never want to have to do *anything* like this again. Cheers, David. -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235 3778 AIM

Re: [GENERAL] need information

2009-04-16 Thread David Fetter
, David. -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via pgsql-general mailing list

Re: [GENERAL] [GENEAL] dynamically changing table

2009-03-30 Thread David Fetter
space that will anoy me later on? Are there any other clever solutions of this problem? -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general -- David Fetter da...@fetter.org http

Re: [GENERAL] Parallel Query Processing

2009-03-26 Thread David Fetter
of snapshot cloning, I can see, at least in broad brush strokes, how this would work for read queries, but I'm curious how (or if) it could work for writes like, for example, updates of many partitions at once. Could it? Cheers, David. -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1

Re: [GENERAL] Enumerating a row set

2009-03-26 Thread David Fetter
-- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP

Re: [GENERAL] text column constraint, newbie question

2009-03-23 Thread David Fetter
, David. -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via pgsql-general mailing list

Re: [GENERAL] Performance of subselects

2009-03-09 Thread David Fetter
. :) Cheers, David. -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via pgsql-general mailing

Re: [GENERAL] problem with single quote in postgres 8.3.5

2009-03-07 Thread David Fetter
as illustrated below: http://xkcd.com/327/ Instead, use pg_prepare() and pg_execute() for this kind of thing. Cheers, David. -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember

Re: [GENERAL] Function that returns Boolean

2009-02-23 Thread David Fetter
- ERROR: syntax error at or near RETURN Line: 2 Thanks Sharmila -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general -- David Fetter da...@fetter.org http

Re: [GENERAL] where to divide application and database

2009-02-20 Thread David Fetter
On Thu, Feb 19, 2009 at 11:43:19PM +, Sam Mason wrote: I was just reading over a reply from David Fetter from a couple of days ago; the thread is archived[1] but this question doesn't really relate to it much. The a question about how to arrange tables and David make the following

Re: [GENERAL] hi all

2009-02-17 Thread David Fetter
check or maybe '-infinity' would be better. Either require a created_date and make the default sane--CURRENT_TIMESTAMP, e.g.--or don't require one, but making a nonsense date is Bad(TM). Cheers, David. -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666

Re: [GENERAL] Good Delimiter for copy command

2009-02-17 Thread David Fetter
: COPY delimiter must be a single character Cheers, David. -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider donating to Postgres: http://www.postgresql.org

Re: [GENERAL] Pet Peeves?

2009-02-03 Thread David Fetter
On Tue, Feb 03, 2009 at 05:48:51PM +, Greg Stark wrote: On Thu, Jan 29, 2009 at 5:43 PM, David Fetter da...@fetter.org wrote: * CTEs not yet integrated into the adjacency lists in pg_catalog, etc. I'm not sure what you're referring to here either. The DAG structures

Re: [GENERAL] Is dropping pg_ts_* harmful?

2009-02-02 Thread David Fetter
. That should scrub everything :) Cheers, David. Thanks folks -- -- Eric Brown / Director of IT / www.mediweightlossclinics.com -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember

Re: [GENERAL] Pet Peeves?

2009-01-29 Thread David Fetter
(or any other replication system) to start with. -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about

Re: [GENERAL] Pet Peeves?

2009-01-29 Thread David Fetter
On Thu, Jan 29, 2009 at 05:18:17PM +, Dave Page wrote: On Thu, Jan 29, 2009 at 4:57 PM, David Fetter da...@fetter.org wrote: * Neither of them let you set up Slony (or any other replication system) to start with. ^ pgAdmin does (well, barring installation

Re: [GENERAL] Pet Peeves?

2009-01-29 Thread David Fetter
On Thu, Jan 29, 2009 at 05:18:19PM +, Gregory Stark wrote: David Fetter da...@fetter.org writes: * No built-in ways to get the information psql gets. See what psql is doing isn't an option when somebody doesn't have psql on hand. Uhm, what information are you referring to here

Re: [GENERAL] What is the best plan to upgrade PostgreSQL from an ancient version?

2009-01-26 Thread David Fetter
. I don't have too much else to add to what was already said, except to reinforce the advice to test your applications before you do the live migration. You're almost certain to hit some compatibility issues. +1 +1 from here, too. Cheers, David. -- David Fetter da...@fetter.org http

Re: [GENERAL] Database schema data synchronizer software for PostgreSQL?

2009-01-21 Thread David Fetter
On Wed, Jan 21, 2009 at 05:18:57AM +0100, Együd Csaba wrote: From: David Fetter [mailto:da...@fetter.org] On Tue, Jan 20, 2009 at 03:03:33PM +0100, Csaba Együd wrote: Hi, I'd like to ask your suggestions about a reliable admin software which is able to compare two dabases and generate

Re: [GENERAL] Database schema data synchronizer software for PostgreSQL?

2009-01-20 Thread David Fetter
should definitely do that and store the scripts to do it in your source code management system along with all the rest of the deploy and upgrade scripts. They can't be generated automatically either. Cheers, David. -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235 3778 AIM

Re: [GENERAL] Database schema data synchronizer software for PostgreSQL?

2009-01-20 Thread David Fetter
On Tue, Jan 20, 2009 at 09:51:25PM -0500, Robert Treat wrote: On Tuesday 20 January 2009 10:44:06 David Fetter wrote: On Tue, Jan 20, 2009 at 03:03:33PM +0100, Csaba Együd wrote: Hi, I'd like to ask your suggestions about a reliable admin software which is able to compare two dabases

Re: [GENERAL] Question regarding new windowing functions in 8.4devel

2009-01-16 Thread David Fetter
by typ order by ts desc) WHERE typ 4; ERROR: syntax error at or near WHERE LINE 8: WHERE ^ Cheers, David. -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember

Re: [HACKERS] Re: [GENERAL] Question regarding new windowing functions in 8.4devel

2009-01-16 Thread David Fetter
On Fri, Jan 16, 2009 at 12:23:16PM -0500, Jaime Casanova wrote: On Fri, Jan 16, 2009 at 12:07 PM, David Fetter da...@fetter.org wrote: Now i want only 3 records for every typ: test=# select typ, ts, rank() over (partition by typ order by ts desc ) from foo where rank = 3; ERROR

Re: [HACKERS] [GENERAL] Question regarding new windowing functions in 8.4devel

2009-01-16 Thread David Fetter
On Fri, Jan 16, 2009 at 12:34:34PM -0500, Tom Lane wrote: David Fetter da...@fetter.org writes: I tried this: SELECT typ, ts, rank() over w AS foo_rank FROM foo WINDOW w AS (partition by typ order by ts desc) WHERE foo_rank 4; ERROR: syntax

Re: [HACKERS] [GENERAL] Question regarding new windowing functions in 8.4devel

2009-01-16 Thread David Fetter
On Fri, Jan 16, 2009 at 12:41:59PM -0500, Tom Lane wrote: David Fetter da...@fetter.org writes: We don't appear to be able to use the actual thing in the target list either. Would you translate that into English? Or at least an example without trivial syntax errors? This works: SELECT

Re: [GENERAL] RCA for MemoryContextAlloc: invalid request size(Known Issue)

2009-01-07 Thread David Fetter
, David. -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via pgsql-general mailing list

Re: [GENERAL] count (DISTINCT expression [ , ... ] ) and documentation

2008-12-26 Thread David Fetter
-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet

Re: [GENERAL] count (DISTINCT expression [ , ... ] ) and documentation

2008-12-26 Thread David Fetter
On Fri, Dec 26, 2008 at 08:03:30PM +0100, Ivan Sergio Borgonovo wrote: On Fri, 26 Dec 2008 10:43:25 -0800 David Fetter da...@fetter.org wrote: On Fri, Dec 26, 2008 at 03:34:33PM +0100, Ivan Sergio Borgonovo wrote: I noticed that starting from 8.2 the documentation at http

Re: [GENERAL] WITH AS vs subselect was: count (DISTINCT expression [ , ... ] ) and documentation

2008-12-26 Thread David Fetter
On Fri, Dec 26, 2008 at 07:13:48PM -0500, Tom Lane wrote: Ivan Sergio Borgonovo m...@webthatworks.it writes: David Fetter da...@fetter.org wrote: In 8.4, you'll be able to do: WITH d AS ( SELECT DISTINCT c1, c2 FROM table1 ) SELECT count(*) FROM d; Nice, but what

Re: [GENERAL] Backup Policy Disk Space Issues

2008-12-22 Thread David Fetter
) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com Remember to vote! Consider donating to Postgres

Re: [GENERAL] How are locks managed in PG?

2008-12-21 Thread David Fetter
implausibly, I might add, to have Oracle (8i, even!) blowing PostgreSQL's doors off for weeks now. Put up, or shut up. Regards, David. -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com

Re: [GENERAL] Need help to dynamically access to colomns in function!

2008-12-17 Thread David Fetter
, and dynamic querying will only lead you further down this rat-hole. The answer to, how do I shoot myself in the foot? is Don't. Cheers, David. -- David Fetter da...@fetter.org http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet

Re: [GENERAL] Multi-table CHECK constraint

2008-12-10 Thread David Fetter
right. Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED] Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via pgsql-general

Re: [GENERAL] SELECT DISTINCT ... ORDER BY problem

2008-12-08 Thread David Fetter
will go away :) Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED] Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via pgsql

Re: [GENERAL] cumulative count

2008-12-04 Thread David Fetter
SQL support for this using OLAP a.k.a. windowing functions, so don't build too many of these dodgy hacks into your application. Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL

Re: [GENERAL] epqa; postgres performance optimizer support tool; opensource.

2008-11-04 Thread David Fetter
suggestions, feedbacks, clarfications @ [EMAIL PROTECTED] Note: This is to propagate the open source which can help for postgres users. This is not a spam, or advertisement. Regards SathiyaMoorthy -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666

Re: [GENERAL] Schema Upgrade Howto

2008-10-30 Thread David Fetter
:) Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED] Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via pgsql-general mailing list

Re: [GENERAL] Schema Upgrade Howto

2008-10-30 Thread David Fetter
by looking at the diff. No. Really, no. You need to create the upgrade script by creating upgrade scripts, not by reverse engineering. Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL

Re: [GENERAL] excluding tables from VACUUM ANALYZE

2008-10-30 Thread David Fetter
doing this in the first place? Autovacuum works just great for modern PostgreSQL versions, and if you're not using one of those, you should be planning your migration, not propping up the old one :) Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM

Re: [GENERAL] Execute Shell script after insert

2008-10-27 Thread David Fetter
it, as in: INSERT INTO clients (name, status) VALUES ('Donda', 'inserted_no_directory'), ('Eonda', 'inserted_no_directory'), ('Fonda', 'inserted_no_directory'), ... Once you're done loading, sweep through the ones so marked. Cheers, David. -- David Fetter [EMAIL PROTECTED] http

Re: [GENERAL] syncing with a MySQL DB

2008-10-26 Thread David Fetter
function which takes some of the predicate, limit, and offset info to build a dynamic sql query against the remote database using dblink. That's one way. For others, I can help out on a consulting basis :) Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235

Re: [GENERAL] Storing questionnaire data

2008-10-24 Thread David Fetter
actually tested that solution with many massive questionnaires for its query performance. I pretty much have my answer. Thanks for your input guys. Happy to help :) Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype

Re: [GENERAL] Storing questionnaire data

2008-10-23 Thread David Fetter
-- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter

Re: [GENERAL] How to force PostgreSQL to use multiple cores within one connection?

2008-10-01 Thread David Fetter
application and DB can be placed on diferent hosts. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED] Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate

Re: [GENERAL] How to force PostgreSQL to use multiple cores within one connection?

2008-10-01 Thread David Fetter
there :) Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED] Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via pgsql-general

Re: Obfuscated stored procedures (was Re: [GENERAL] Oracle and Postgresql)

2008-09-25 Thread David Fetter
. But there *are* some very real and legitimate needs for this, though it's a small minority of those who think they do. Please elucidate those needs in detail, then explain why it might be PostgreSQL's job to meet them. Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1

Re: Obfuscated stored procedures (was Re: [GENERAL] Oracle and Postgresql)

2008-09-24 Thread David Fetter
-impossible problems like the halting problem. Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED] Remember to vote! Consider donating to Postgres: http://www.postgresql.org

Re: [GENERAL] pg_catalog forward compatibility

2008-09-02 Thread David Fetter
they do that's not one of your scripts will break it. Explicitly disclaim any responsibility for such meddling. :) Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED] Remember

Re: [GENERAL] Oracle and Postgresql

2008-09-01 Thread David Fetter
://wiki.postgresql.org/wiki/CTEReadme The lack of windowing functions is a bit frustrating as I'm otherwise a big Postgres fan! Those will both be fixed, at least to a large degree, in 8.4 :) Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM

Re: [GENERAL] Oracle and Postgresql

2008-09-01 Thread David Fetter
On Mon, Sep 01, 2008 at 04:39:09PM +0200, Thomas Kellerer wrote: David Fetter, 01.09.2008 16:08: because we are making extensive usage of Oracle's windowing functions http://umitanuki.net/pgsql/wfv04/design.html I knew there was work going on regarding this, but I didn't know how definite

Re: [GENERAL] Oracle and Postgresql

2008-08-31 Thread David Fetter
. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED] Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via pgsql-general mailing list (pgsql-general

Re: [GENERAL] Oracle and Postgresql

2008-08-31 Thread David Fetter
is a huge entity they can blame when everything goes wrong. They're not interested in the actual response times or even in the much more important time-to-fix because once they've blamed Oracle, they know the responsibility is no longer on their shoulders. Cheers, David. -- David Fetter [EMAIL

Re: [GENERAL] Ranking?

2008-08-22 Thread David Fetter
into 8.4, so don't put too, too much effort into this. :) Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED] Remember to vote! Consider donating to Postgres: http

Re: [GENERAL] on delete cascade slowing down delete

2008-08-21 Thread David Fetter
the main table contain 600-800K records. the explain delete p; doesn't give any clue. Any hint to track down the problem? BEGIN; EXPLAIN ANALYZE DELETE ... ROLLBACK; Lack of indexes on the referencing tables might be an issue, as might any triggers. Cheers, David. -- David Fetter [EMAIL

Re: [GENERAL] different results based solely on existence of index (no, seriously)

2008-08-12 Thread David Fetter
, of the major version, in this case 8.3, that the bug appears in. Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED] Remember to vote! Consider donating to Postgres: http

Re: [GENERAL] Advice on implementing counters in postgreSQL

2008-08-02 Thread David Fetter
restart from 1 every year. Here's a backward-compatible way to do this: http://www.varlena.com/GeneralBits/130.php Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED] Remember

Re: [GENERAL] array_accum() and quoted content

2008-07-28 Thread David Fetter
. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED] Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via pgsql-general mailing list (pgsql-general

Re: [GENERAL] Referential integrity vulnerability in 8.3.3

2008-07-15 Thread David Fetter
to rewrite large parts of Postgres's code which checks referential integrity, and there would still be things that deliberately wrong DDL, triggers, rules, etc. could do. Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype

Re: [GENERAL] Target lists can have at most 1664 entries?

2008-07-05 Thread David Fetter
there. Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED] Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via pgsql-general mailing

Re: [GENERAL] pg_locks at-a-glance view

2008-06-19 Thread David Fetter
could be in SQL, with one minor bit in PL/PgSQL. File attached. I couldn't find a generally accepted way to do this, although I'm sure someone must have done something like this before. There's stuff in the aforementioned lock.c, but I don't see anything visible to SQL. Cheers, David. -- David

Re: [GENERAL] Short-circuiting FK check for a newly-added field

2008-05-21 Thread David Fetter
is pointless because the newly added field is nothing but NULLs. This is version 8.1.mumble. Have you tried making the FK constraint INITIALLY DEFERRED? Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter

Re: [GENERAL] Making sure \timing is on

2008-05-13 Thread David Fetter
On Tue, May 13, 2008 at 10:47:40AM -0400, Alvaro Herrera wrote: Tom Lane escribió: Alvaro Herrera [EMAIL PROTECTED] writes: David Fetter escribi?: Thanks for the heads-up :) Second patch attached, this time with some docs. Added to July commitfest. Surely this is merely

Re: [GENERAL] Making sure \timing is on

2008-05-13 Thread David Fetter
On Tue, May 13, 2008 at 08:14:51AM -0700, David Fetter wrote: On Tue, May 13, 2008 at 10:47:40AM -0400, Alvaro Herrera wrote: Tom Lane escribió: Alvaro Herrera [EMAIL PROTECTED] writes: David Fetter escribi?: Thanks for the heads-up :) Second patch attached, this time

Re: [GENERAL] Making sure \timing is on

2008-05-13 Thread David Fetter
On Tue, May 13, 2008 at 11:36:57AM -0400, Tom Lane wrote: David Fetter [EMAIL PROTECTED] writes: Surely this is merely proof of concept and not a complete patch. Next patch attached :) Uh, my point was that the agreement was to do this to *all* of psql's toggling backslash commands

Re: [GENERAL] Making sure \timing is on

2008-05-13 Thread David Fetter
On Tue, May 13, 2008 at 01:53:33PM -0700, David Fetter wrote: On Tue, May 13, 2008 at 11:36:57AM -0400, Tom Lane wrote: David Fetter [EMAIL PROTECTED] writes: Surely this is merely proof of concept and not a complete patch. Next patch attached :) Uh, my point

Re: [GENERAL] Making sure \timing is on

2008-05-12 Thread David Fetter
. The command without an argument should certainly keep the old toggle behavior, for backwards compatibility. Attached patch does some of the right thing, but doesn't yet handle error cases. How liberal should we be about capitalization, spelling, etc.? Cheers, David. -- David Fetter [EMAIL

Re: [GENERAL] Making sure \timing is on

2008-05-12 Thread David Fetter
On Mon, May 12, 2008 at 05:30:48PM -0400, Bruce Momjian wrote: David Fetter wrote: On Sun, May 11, 2008 at 11:48:29PM -0400, Tom Lane wrote: Scott Marlowe [EMAIL PROTECTED] writes: Is it reasonable behavior to have \timing along toggle and \timing on / \timing off be a forced switch

Re: [GENERAL] operator varchar = integer

2008-05-05 Thread David Fetter
and Datatypes. That technical debt is a risk to your whole project, and you need to dedicate resources to paying it down. http://en.wikipedia.org/wiki/Technical_debt There are ways to get those automated casts, but they will only make your situation worse in the long run. Cheers, David. -- David

Re: [GENERAL] operator varchar = integer

2008-05-05 Thread David Fetter
On Mon, May 05, 2008 at 05:26:40PM +0200, Daniel Schuchardt wrote: David Fetter schrieb: That technical debt is a risk to your whole project, and you need to dedicate resources to paying it down. http://en.wikipedia.org/wiki/Technical_debt There are ways to get those automated casts

Re: [GENERAL] I need to ecrypt one column to an output file

2008-04-19 Thread David Fetter
of developer related links here, and info to use the /contrib pgcrypto, but I'm not a PG developer and I failed to find any info on HOW TO USE that library function... Thanks all, Ralph Smith [EMAIL PROTECTED] = -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1

Re: [GENERAL] Survey: renaming/removing script binaries (createdb, createuser...)

2008-03-26 Thread David Fetter
it automatically. 4) How do you perform VACUUM? - a) vacuumdb - shell command b) VACUUM - SQL command c) autovacuum c) d) What is vacuum? Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter

Re: [GENERAL] array_cat without duplicity

2008-03-19 Thread David Fetter
); $$; SELECT array_undup(array_cat(ARRAY[1,2], ARRAY[2,3])); array_undup - {1,2,3} (1 row) Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED] Remember to vote

Re: [GENERAL] ER Diagram design tools (Linux)

2008-03-09 Thread David Fetter
On Sat, Mar 08, 2008 at 10:49:02AM -0800, Colin Fox wrote: David Fetter wrote: On Fri, Mar 07, 2008 at 01:22:49PM -0800, Colin Fox wrote: I've created a pg_foundry project for this. Assuming the project gets approved, I'll post the link here. Wouldn't it be better just

Re: [GENERAL] ER Diagram design tools (Linux)

2008-03-08 Thread David Fetter
pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL

Re: [GENERAL] ER Diagram design tools (Linux)

2008-03-07 Thread David Fetter
a postgres database. If anyone's interested, I can make this available. It works quite well. It uses a postgres-to-xml extractor that someone wrote (I don't know who - their name is not in the file) and then I convert the xml to graphviz. Sounds good :) Cheers, David. -- David Fetter [EMAIL

Re: [GENERAL] [DOCS] Documenting a DB schema

2008-03-05 Thread David Fetter
-table.html) However, Postgres doesn't support the comment keyword. Actually, it does :) Is there an alternative? Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED

Re: [GENERAL] dbi_link and dbi:ODBC

2008-02-28 Thread David Fetter
to increase your free space map settings -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED] Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate

Re: [GENERAL] dynamic crosstab

2008-02-19 Thread David Fetter
rows? Is that possible? One hack I've used in the past to get those is serializing the rows: XML, YAML and most recently JSON. It would be really neat if you didn't have to specify the return type in the query that invoked the crosstab. It would be handy :) Cheers, David. -- David Fetter [EMAIL

Re: [GENERAL] Initdb failed in PostgreSQL 7.3.21

2008-02-18 Thread David Fetter
On Mon, Feb 18, 2008 at 05:45:05PM +0530, Kakoli Sen wrote: Hi, I install PostgreSQL 7.3.21 successfully with sudo and could start the postmaster as sudo. The 7.3 series is no longer supported. Use 8.3 instead. Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1

Re: [GENERAL] [OT] advanced database design (long)

2008-02-04 Thread David Fetter
on a land mine and hoping it won't go off. Imho, don't use it with a complex database structure; as a minimum, use lookup tables for Value (to avoid uncontrolled new parameters) and add a column to store the attribute type. Putting lipstick on the EAV pig does not help. Cheers, David. -- David

Re: R: [GENERAL] how to add array of objects to a record

2008-02-03 Thread David Fetter
. Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED] Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate ---(end

Re: [GENERAL] [OT] advanced database design (long)

2008-02-02 Thread David Fetter
its uses cases. Why, yes. I encourage all my competitors to use it. ;) Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED] Remember to vote! Consider donating to Postgres

Re: [GENERAL] OT - pg perl DBI question

2008-01-29 Thread David Fetter
. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED] Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate ---(end of broadcast

Re: [GENERAL] Replication Using Triggers

2008-01-19 Thread David Fetter
as good (or rather, no more broken) for PostgreSQL with a minimum of effort. In that case, use one of the existing solutions. They're all way easier than re-inventing the wheel. Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo

Re: [GENERAL] Online Oracle to Postgresql data migration

2008-01-15 Thread David Fetter
On Mon, Jan 14, 2008 at 11:42:50AM -0500, Josh Harrison wrote: Thanks On Jan 12, 2008 9:19 AM, David Fetter [EMAIL PROTECTED] wrote: On Fri, Jan 11, 2008 at 01:02:01PM -0500, Josh Harrison wrote: Hi We have an Oracle production database with some terbytes of data. We wanted

Re: [GENERAL] many to one of many modeling question

2008-01-11 Thread David Fetter
, foo_2_id, foo_3_id, foo_4_id, foo_5_id ) AS id FROM refs_all_foo; You can then make this VIEW writeable by the usual methods. Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter

Re: [GENERAL] XML and Routing

2008-01-08 Thread David Fetter
and then standardize on 8.3 as a minimum version. Cheers, David. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED] Remember to vote! Consider donating to Postgres: http://www.postgresql.org

Re: [GENERAL] comparing rows

2007-12-11 Thread David Fetter
-- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED] Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate ---(end of broadcast

Re: [GENERAL] SQL Query

2007-12-05 Thread David Fetter
. -- David Fetter [EMAIL PROTECTED] http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED] Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate ---(end of broadcast

<    1   2   3   4   5   6   >