Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-12131

InitDb fails at Creating Functions

XMLWordPrintable

      I can't seem to get past the below error. I'm in Postgresql 14. Ubuntu 20.04.

       

      Mon Dec 13 15:34:41 2021 : Creating functions ... (CreateFunctions.sql)
      Mon Dec 13 15:34:42 2021 : psql:/home/rob/musicbrainz-server/admin/sql/CreateFunctions.sql:23: ERROR: function array_append(anyarray, anyelement) does not exist
      Error during CreateFunctions.sql at ./admin/InitDb.pl line 92.
      Mon Dec 13 15:34:42 2021 : InitDb.pl failed

       

      Looks like this is what is causing the issue:
       

      CREATE AGGREGATE median(anyelement) (   SFUNC=array_append,   STYPE=anyarray,   FINALFUNC=_median,   INITCOND='{}' );

       
       

      I've tried this in WSL and in Ubuntu minimal. Thanks!

            bitmap Michael Wiencek
            rob@undeadindustries.com rob@undeadindustries.com
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Version Package
                Schema change, 2022 Q2