Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eClFB-0007yt-LE for pgsql-general@arkaria.postgresql.org; Thu, 09 Nov 2017 11:43:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eClFB-0007NC-81 for pgsql-general@arkaria.postgresql.org; Thu, 09 Nov 2017 11:43:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eClCj-0000DZ-8A for pgsql-general@postgresql.org; Thu, 09 Nov 2017 11:41:05 +0000 Received: from mx2.mailbox.org ([80.241.60.215]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eClCc-000638-Pg for pgsql-general@postgresql.org; Thu, 09 Nov 2017 11:41:04 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id B6E054C7E9; Thu, 9 Nov 2017 12:40:57 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id UAEhs-E_Pp_I; Thu, 9 Nov 2017 12:40:55 +0100 (CET) Message-ID: <1510227654.2625.7.camel@cybertec.at> Subject: Re: Oracle to PostgreSQL From: Laurenz Albe To: Brahmam Eswar Cc: pgsql-general Date: Thu, 09 Nov 2017 12:40:54 +0100 In-Reply-To: References: <1510226310.2625.4.camel@cybertec.at> Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On Thu, 2017-11-09 at 17:01 +0530, Brahmam Eswar wrote: > Here is the snippet of it. > TYPE INV_LINES_RT IS RECORD( > VENDOR_NUM A.Datastore.VENDOR_NUM%TYPE, > VENDOR_SITE_CODE A.Datastore.VENDOR_SITE_CODE%TYPE, > INVOICE_NUM A.Datastore.INVOICE_NUM%TYPE, > TXN_CNT NUMBER > ); You can create a composite type in PostgreSQL: CREATE TYPE complex AS (r integer, i integer); > TYPE INV_LINES_T IS TABLE OF INV_LINES_RT; You would use an array in this case: DECLARE carr complex[]; Yours, Laurenz Albe -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general