PostgreSQL: Port update-keys.sql to PostgreSQL
authorJeff Janes <jeff.janes@gmail.com>
Fri, 31 Oct 2014 20:07:55 +0000 (13:07 -0700)
committerJeff Janes <jeff.janes@gmail.com>
Fri, 31 Oct 2014 20:21:04 +0000 (13:21 -0700)
commit44b4b45bfa49f88f5ec92c4a445cdfe405841969
tree7c27d415b3c148567ee5b7ad3f8888c3737c9c94
parent29defd7f7dee8e7df34476a68842464feac46909
PostgreSQL: Port update-keys.sql to PostgreSQL

This fixes the same bug in PostgreSQL that was reported
against Oracle as bug 71040, using the same method of copying
the update-keys.sql script into maintenance/postgres.

Since all three copies of this file do the same thing, perhaps
we should find lowest-common-denominator syntax that works in
all databases to avoid redundant copies that can get out of
sync with each other.  (The Oracle and PostgreSQL versions are
already identical to each other).

The comments in the file are confusing and ungrammatical, but
they are a copy of the same language from the other copies.
Since I don't know what it is trying to say, I can't
fix it.

I have verified that this patch fixes the problem where
mediawiki could not be installed with PostgreSQL using
either the CLI or the web installer, due to SQL syntax errors.

I haven't tested the the update-keys actually accomplishes
whatever it was introduced to accomplish, though.

Bug: 72834
Change-Id: I2a0cfa3dd0751b9fb65450b1537b6e77be60009a
maintenance/postgres/update-keys.sql [new file with mode: 0644]