Received: from www.cdfd.org.in ([202.54.67.145]) by hub.org (8.10.1/8.10.1) with ESMTP id e9C7JOr03584 for ; Thu, 12 Oct 2000 03:19:25 -0400 (EDT) Received: from localhost (indraneel@localhost) by www.cdfd.org.in (980427.SGI.8.8.8/970903.SGI.AUTOCF) via SMTP id MAA95373 for ; Thu, 12 Oct 2000 12:56:46 -0700 (PDT) Date: Thu, 12 Oct 2000 12:56:46 -0700 (PDT) From: Indraneel Majumdar To: pgsql-sql@postgresql.org Subject: dynamic object creation Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by hub.org id e9C7JWr03616 X-Archive-Number: 200010/111 X-Sequence-Number: 1773 Hi, I'm not sure if the subject line has been proper. I have this following problem which I hope PostgreSQL can handle. I'm converting a complex flatfile where records are arranged serially. some fields are as 'n' times repeating blocks of multiple lines. Some subfields within these are also 'n' time repeating blocks of multiple lines. So in my main table I do not know (until at run time) how many fields to create (same for any sub tables). How can I do this dynamically? I tried using arrays, but retrieval from that is causing some problems. I have already checked the array utilities in the contrib section and have extended the operator list for other types (I'll send the file to it's original author so that he may include it if he wishes). I think there must be some object-oriented way of doing this without creating too many keys. or are keys the only and best method? Using this is causing a performance hit. If it's any help, what I'm trying to convert are biological databases distributed in 'SRS' flatfile format from ftp.ebi.ac.uk/pub/databases/ Thank you, Indraneel /************************************************************************. # Indraneel Majumdar ¡ E-mail: indraneel@123india.com # # Bioinformatics Unit (EMBNET node), ¡ URL: http://scorpius.iwarp.com # # Centre for DNA Fingerprinting and Diagnostics, # # Hyderabad, India - 500076 # `************************************************************************/