Coalesce 2 Arrays - Mailing list pgsql-general

From Alex Magnum
Subject Coalesce 2 Arrays
Date
Msg-id CA+cR4zeFoa6GS8t6nYPfqFSDc=O3s7Ep5kENOk4c+-dyLKqjFw@mail.gmail.com
Whole thread Raw
Responses Re: Coalesce 2 Arrays
List pgsql-general
Hi,
I have two arrays which I need to combine based on the individual values;
i could do a coalesce for each field but was wondering if there is an easier way

array_a{a,   null,c,   d,null,f,null}  primary
array_b{null,2   ,null,4,5   ,6,null}  secondary
 
result {a,   2,   c,   d,5,   f,null)

Any advice would be appreciated

pgsql-general by date:

Previous
From: Kevin Brannen
Date:
Subject: RE: [EXT EMAIL] Re: First Time Starting Up PostgreSQL and HavingProblems
Next
From: Rob Sargent
Date:
Subject: Re: Coalesce 2 Arrays