multidimensional array loading - Mailing list pgsql-novice

From David Monarchi
Subject multidimensional array loading
Date
Msg-id eea51fdb0706041541g91383e8qfe119b41d75812fe@mail.gmail.com
Whole thread Raw
List pgsql-novice
Hello

I have data in which one of the fields has the following structure for a single value in the table

              '{  { w, {1,2}}, {x, {11,22}},{y, {44,55}},{z, {77,22}}   }'

The number of "rows" in the field ( i.e., w,x,y z...) will be  unknown, but for each one there will always be a pair of associated values.

I've been trying to figure out how to insert the above example, but so far have not be able to solve the puzzle.  The field is defined as a text array with two dimensions.  I've also in desperation tried three dimensions but to no avail.

I know that I can simply use
              '{  {w, 1, 2}, {x, 11, 22},{y, 44, 55},{z, 77, 22}   }'
but I would like to keep the two numbers as a logical unit.

Any assistance would be greatly appreciated.


Thank you.

david

pgsql-novice by date:

Previous
From: "Andrej Ricnik-Bay"
Date:
Subject: Re: Laptop Mobo Dead...
Next
From: "Loredana Curugiu"
Date:
Subject: Re: JOIN