Last modified: 2012-12-30 20:38:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T32544, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30544 - Sequence value update
Sequence value update
Status: NEW
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-24 13:06 UTC by Luigi Corsaro
Modified: 2012-12-30 20:38 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
SQL to update sequence actual value (910 bytes, text/plain)
2011-08-24 13:09 UTC, Luigi Corsaro
Details

Description Luigi Corsaro 2011-08-24 13:06:07 UTC
It's only a suggestion, could be useful during the update process of the update .php to cal allo a sql that set the actual value of each sequence to the last number in each table in this way we can avoi the annoying problem of duplicate key.
Had happened to me a problem with the database that change the actual value of the sequence so I've written few lines of sql to update those.

I hope can be usefuel alfo for others guy.
Comment 1 Luigi Corsaro 2011-08-24 13:09:27 UTC
Created attachment 8969 [details]
SQL to update sequence actual value
Comment 2 Brion Vibber 2011-08-24 18:50:24 UTC
I assume this is some PostgreSQL or other non-MySQL issue that's specific to one or more particular database backends?

What sort of situation do you find causes these incorrectly set sequence values you find? Is this a common problem? Could "fixing" the sequence values damage deliberate attempts to bump the sequences etc?
Comment 3 Luigi Corsaro 2011-08-25 10:24:48 UTC
I assume this is some PostgreSQL or other non-MySQL issue that's specific to
one or more particular database backends?
Is related to postgres

What sort of situation do you find causes these incorrectly set sequence values
you find? 
I didn't investigate why but upgrade from 1.16 to 1.17 the sequence qher not to the exact value

Is this a common problem? Could "fixing" the sequence values damage
deliberate attempts to bump the sequences etc?
No it doesn't bump other table beacause each sequence is used only on the related table.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links