Vinay Gupta wrote > Please let me know if there is any optimal way to finish this function in > ~ > 2-3 secs If you can figure out how to write that in pure SQL you might have a chance. David J. -- View this message in context: http://postgresql.nabble.com/Concat-bigint-Array-Values-in-a-Function-tp5826428p5826433.html Sent from the PostgreSQL - general mailing list archive at Nabble.com. -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general