X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D2FB63A58DE for ; Tue, 11 Jan 2005 13:41:57 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 89465-05 for ; Tue, 11 Jan 2005 13:41:46 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 0D64A3A58B5 for ; Tue, 11 Jan 2005 13:41:48 +0000 (GMT) Received: (qmail 6585 invoked from network); 11 Jan 2005 13:41:17 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 11 Jan 2005 13:41:17 -0000 Message-ID: <41E3D796.1010503@fastcrypt.com> Date: Tue, 11 Jan 2005 08:41:42 -0500 From: Dave Cramer Reply-To: pg@fastcrypt.com Organization: Postgres International User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gary Doades Cc: pgsql-performance@postgresql.org Subject: Re: PostgreSQL vs. Oracle vs. Microsoft References: <41E22F04.103@gpdnet.co.uk> <33c6269f05011008074b33b812@mail.gmail.com> <20050110173307.GA18357@zong.spline.inf.fu-berlin.de> <20050110114200.76e9a51d.frank@wiles.org> <33c6269f050110094646897c3e@mail.gmail.com> <41E2E19D.1000903@gpdnet.co.uk> <41E2F43C.5020702@fastcrypt.com> <41E2F9ED.1070206@gpdnet.co.uk> <41E31815.4030908@fastcrypt.com> <41E38231.5090301@gpdnet.co.uk> In-Reply-To: <41E38231.5090301@gpdnet.co.uk> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/131 X-Sequence-Number: 9821 I understand that but I have seen VM's crash. This does bring up another point. Since postgresql is not threaded a .NET pl would require a separate VM for each connection (unless you can share the vm ?). One of the java pl's (pl-j) for postgres has dealt with this issue. For a hundred connections that's a hundred .NET vm's or java vm's. Is the .NET VM shareable ? Dave Gary Doades wrote: > Dave Cramer wrote: > >> Ok, so one use case is to select a large number of rows and do some >> non-trivial operation on them. >> I can see where getting the rows inside the server process ( ie some >> procedural language ) thereby reducing the round trip overhead would >> be beneficial. However how do you deal with the lack of control ? For >> instance what happens if you run out of memory while doing this ? I'm >> not sure about other DB'S but if you crash the procedural language >> inside postgres you will bring the server down. >> >> It would seem to me that any non-trivial operation would be better >> handled outside the server process, even if it costs you the round trip. > > > Since a .NET language is operating effectively inside a VM it is > pretty much impossible to bring down the server that way. Only a bug > in the .NET runtime itself will do that. The C# try/catch/finally with > .NET global execption last chance handlers will ensure the server and > your code is well protected. > > Cheers, > Gary. > > ---------------------------(end of broadcast)--------------------------- > TIP 8: explain analyze is your friend > > -- Dave Cramer http://www.postgresintl.com 519 939 0336 ICQ#14675561