title: Postgres: calling function with text[] param fails with array literal
body: <p>I have a Postgres function that accepts a text[] as input. For example</p>
  <pre><code>create function temp1(player_ids text[])
      returns void
      language plpgsql
  as
  $$
  begin
      update players set player_xp = 0
      where id in (player_ids);
      -- the body is actually 20 lines long, updating a lot of tables
  end;
  $$;
  </code></pre>
  <p>and I'm trying to call it, but I keep getting</p>
  <pre><code>[42883] ERROR: operator does not exist: text = text[] Hint: No operator matches the given name and argument types. You might need to add explicit type casts. Where: PL/pgSQL function temp1(text[]) line 3 at SQL statement
  </code></pre>
  <p>I have tried these so far</p>
  <pre><code>select temp1('{F7AWLJWYQ5BMPKGXLMDNQKQ4NY,AQPBAFKQONGLBKIMCSOD747GY4}');
  select temp1('{F7AWLJWYQ5BMPKGXLMDNQKQ4NY,AQPBAFKQONGLBKIMCSOD747GY4}'::text[]);
  select temp1(array['F7AWLJWYQ5BMPKGXLMDNQKQ4NY,AQPBAFKQONGLBKIMCSOD747GY4']);
  select temp1(array['F7AWLJWYQ5BMPKGXLMDNQKQ4NY,AQPBAFKQONGLBKIMCSOD747GY4']::text[]);
  </code></pre>
  <p>I have to be missing something obvious...how do I call this function with an array literal?</p>