powerset? - Mailing list pgsql-general

From Ben
Subject powerset?
Date
Msg-id CED3A96A-7A8A-4F3F-8072-D417A5169C3B@silentmedia.com
Whole thread Raw
Responses Re: powerset?
List pgsql-general
Does anybody have a stored proc they'd like to share (preferably pl/
pgsql) that generates the power set of an array? For instance:

select powerset({1,2,3});

....would give 8 rows:

{}
{1}
{2}
{3}
{1,2}
{2,3}
{1,3}
{1,2,3}



pgsql-general by date:

Previous
From: "Guy Rouillier"
Date:
Subject: Re: Can i switch to the use of persistent connections with my already in use application without worrying ?
Next
From: zeljko
Date:
Subject: How to avoid error with convert() function