Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 6A60864FD01 for ; Wed, 16 Jul 2008 17:47:07 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 66710-02 for ; Wed, 16 Jul 2008 17:47:01 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from ag-out-0708.google.com (ag-out-0708.google.com [72.14.246.245]) by postgresql.org (Postfix) with ESMTP id CC22164FCE5 for ; Wed, 16 Jul 2008 17:47:02 -0300 (ADT) Received: by ag-out-0708.google.com with SMTP id 31so4522664agc.5 for ; Wed, 16 Jul 2008 13:47:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=a6ADTaDCaagxLS4VuBaTfTZeZoiXdD3nbfgKdb62Yr4=; b=qgxiq1bbz0BwdqTKz0UZcoN0vSdkLiET46VJbZz7nIUs6X+ZgW/c2kfRq8UvU8oRPW jFLThGvnahbd6gbjWlBwiyR321ZNDFTlnPULzmcy1xFH8MgXoGEErG74aLRyoPCQwFHS p9GjZFBGwX6Sgc4SBTfjstVSr9BQWRaUgk1xw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=Ywbv039u4esiN69G7M0+PlAYKQBninjptvYUb+/oAY5tP7vMtdUv1lg7fi4vHI8uCU N1QADO17evEd/Y2rE11E21/GP24+L/HrfXgkfrW4IoPwAGnefMSWW8L6KAHhAellNZBH kfLBWxOpo+QxG2rmAtkcp27BJIUf8TDrBtcJE= Received: by 10.90.34.4 with SMTP id h4mr2112423agh.116.1216241221293; Wed, 16 Jul 2008 13:47:01 -0700 (PDT) Received: by 10.90.54.13 with HTTP; Wed, 16 Jul 2008 13:47:01 -0700 (PDT) Message-ID: Date: Wed, 16 Jul 2008 14:47:01 -0600 From: "Kunal Gupta" To: pgsql-students@postgresql.org Subject: EC2 with Postgresql MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_28035_13021778.1216241221278" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200807/1 X-Sequence-Number: 114 ------=_Part_28035_13021778.1216241221278 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Guys, I have following challenges: - I am suppose to connect to amazon EC2 and get the various information. - For this I am suppose to create a function in plpythonu. - Problem: in create function if we write "import" statement then we can refer to standard libraries, but here I have to import a class made by me. can anyone tell if I can write " import X " where X is a class code by me and where to place this X class ---- this is while if am creating a function in postgresql using plpythonu. Thanks and regards, Kunal ------=_Part_28035_13021778.1216241221278 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi Guys,

I have following challenges:

- I am suppose to connect to amazon EC2 and get the various information.

- For this I am suppose to create a function in plpythonu.

- Problem: in create function if we write "import" statement then we can refer to standard libraries, but here I have to import a class made by me.

can anyone tell if I can write " import X " where X is a class code by me and where to place this X class ---- this is while if am creating a function in postgresql using plpythonu.


Thanks and regards,
Kunal
------=_Part_28035_13021778.1216241221278--