Re: Recursive Arrays 101

From: Harald Fuchs <hari(dot)fuchs(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Recursive Arrays 101
Date: 2015-10-26 16:00:42
Message-ID: 8737wxbowl.fsf@hf.protecting.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thomas Kellerer <spam_eater(at)gmx(dot)net> writes:

> I always wonder whether it's more efficient to aggregate this path
> using an array rather than a varchar. Mainly because representing the
> numbers as varchars will require more memory than as integer, but then
> I don't know the overhead of an array structure and whether appending
> to an array doesn't actually copy it.

If you go that direction, you're not far away from the ltree extension
(which might also be a solution for the OP's problem).

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Lasse Westh-Nielsen 2015-10-26 16:39:27 Re: Service not starting on Ubuntu 15.04
Previous Message Melvin Davidson 2015-10-26 15:57:21 Re: Service not starting on Ubuntu 15.04