„Szerkesztő:KeFe/Segítség” változatai közötti eltérés

Tartalom törölve Tartalom hozzáadva
KeFe (vitalap | szerkesztései)
aNincs szerkesztési összefoglaló
KeFe (vitalap | szerkesztései)
a Eltávolította a lap teljes tartalmát
1. sor:
<span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">This document describes the state of Postgres support in MediaWiki.</span>
Ez a dokumentum leírja az állam a Postgres támogatást MediaWiki.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">
== Overview ==
Support for PostgreSQL has been available since version 1.7 of MediaWiki, and is fairly well maintained.</span>
 
== Áttekintése ==
támogatása PostgreSQL óta elérhető 1.7-es verzió a MediaWiki, és meglehetősen jól karbantartott.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">The main code is very well integrated, while extensions are very hit and miss.</span> A fő kód nagyon jól beilleszkedett, míg a kiterjesztések nagyon hit és hiányzik.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">Still, it is probably the most supported database after MySQL.</span> Mégis, talán a leginkább támogatott adatbázis után MySQL.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">Much of the work in making MediaWiki database-agnostic came about through the work of creating Postgres support.</span> A munka nagy részét abban, hogy MediaWiki adatbázis-független jött létre a munka létrehozásának Postgres támogatást.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">
== Required versions ==
The current minimum version of PostgreSQL for MediaWiki is 8.1.</span>
== Verziókról ==
A jelenlegi minimális verziója PostgreSQL mediawiki.conf 8.1.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">It is expected that this will be raised to 8.3 at some point, as 8.1 and 8.2 are nearing end of life.</span> Várható, hogy ez lesz emelt 8,3 bizonyos ponton, például a 8.1 és 8.2 élettartama vége felé közeledik.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">
== Database schema ==
Postgres has its own schema file at maintenance/postgres/tables.sql.</span>
== Adatbázisséma ==
Postgres saját sémafájl a karbantartási / postgres / tables.sql.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">The goal is to keep this file as close as possible to the canonical schema at maintenance/tables.sql, but without copying over all the usage comments.</span> A célunk az, hogy ezt a fájlt a lehető legközelebb a kanonikus sémát karbantartási / tables.sql, de nem másol át minden használat hozzászólás.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">General notes on the conversion: * The use of a true TIMESTAMP rather than the text string that MySQL uses is highly encouraged.</span> Általános tudnivalók a konverziós: * A használata igazi TIMESTAMP helyett a szöveget, MySQL használ erősen ösztönözni.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">There are still places in the code (especially extensions) which make assumptions about the textual nature of timestamp fields, but these can almost always be programmed around.</span> Vannak még helyek a kódot (különösen kiterjesztések), amely készíts olyan szöveges jellege timestamp mező, de ezek szinte mindig programozható körül.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">* Although Postgres has a true BOOLEAN type, boolean columns are always mapped to SMALLINT, as the code does not always treat the column as a boolean (which is limited to accepting true, false, 0, 1, t, or f) * The default data type for all VARCHAR, CHAR, and VARBINARY columns should simply be TEXT.</span> * Bár Postgres egy igazi logikai típusú, boolean oszlopok mindig leképezve smallint, mint a kód nem mindig kezelik az oszlopról egy boolean (amely kizárólagosan elfogadja igaz, hamis, 0, 1, t, vagy f) * A alapértelmezett adattípus minden VARCHAR, KAR, és VARBINARY oszlopok egyszerűen TEXT.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">The only exception is when VARBINARY is used to store true binary data, such as the math_inputhash column, in which case BYTEA should be used.</span> Az egyetlen kivétel, amikor VARBINARY tárolására használható valós bináris adatokat, mint például a math_inputhash oszlop, amely esetben BYTEA kell használni.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">* All integer variants should generally be mapped to INTEGER.</span> * Minden integer változatok is el kellene térképezni, hogy egész.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">There is small-to-no advantage in using SMALLINT versus INTEGER in Postgres, and the possibility of running out of room outweighs such concerns.</span> Van kis-to-no előnye a smallint versus egész szám Postgres, és a lehetőséget, elfogy a szobában felülmúlja ezeket az érdekeket.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">The columns that are BIGINT in other schemas should be INTEGER as well, as none of them so far are even remotely likely to reach the 32 billion limit of an INTEGER.</span> Az oszlopok, amelyek BIGINT más sémák kell EGÉSZ is, mivel egyikük sem eddig még távolról várhatóan eléri a 32 milliárd limit az egész.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">* Blobs (blob, tinyblog, mediumblob) should be mapped to TEXT whenever possible, and to BYTEA if they are known to contain binary data.</span> * Festékfoltok (blob, tinyblog, mediumblob) kell térképezni, hogy a szöveget, amikor csak lehetséges, és BYTEA ha tudják róluk, hogy bináris adatot.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">* All length modifiers on data types should be removed.</span> * Minden hossza módosítót adattípusok el kell távolítani.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">If they are on an INTEGER, it's probably an error, and if on any text-based field, simply using TEXT is preferred.</span> Ha ők egy egész, ez valószínűleg egy hiba, és ha bármilyen szöveges mező, egyszerűen használja TEXT részesíti előnyben.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">* Sequences should be explicitly named rather than using SERIAL, as the code can depend on having a specific name.</span> * Sorozatok kell nevezni, nem pedig a soros, mint a kód is függ, hogy egy speciális nevet.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">* Foreign keys should be used when possible.</span> * Külföldi kulcsot alkalmazni kell, ha lehetséges.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">This makes things both easier and harder in the code, but most of the major problems have now been overcome.</span> Ez teszi a dolgokat mind könnyebb és nehezebb a kódot, de a legtöbb a fő probléma most sikerült megoldani.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">Always add an explicit ON DELETE clause, and consider carefully what choice to use (all things considered, prefer CASCADE).</span> Mindig adja közre a Törlés záradékot, és alaposan gondolja meg, mit választás használni (mindent egybevetve, inkább CASCADE).</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">* The use of CIDR should be done very carefully, because the code will sometimes want to store things such as an empty string or other non-IP value in the column.</span> * A használata CIDR kell végezni nagyon óvatosan, mert a kód néha szeretné tárolni a dolgokat, mint egy üres stringet, vagy más, nem IP oszlopban szereplő érték.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">When in doubt, use TEXT.</span> Kétség esetén a Szöveg használata.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">* Indexes should be created using the original MySQL tables.sql as a guide, but keeping in mind the ability of Postgres to use partial indexes, functional indexes, and bitmaps.</span> * Indexes létre kell hozni az eredeti MySQL tables.sql, mint egy útmutató, de szem előtt tartva a képessége Postgres használni részleges indexek, funkcionális indexet, és rajzok.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">The index names should be logical but are not too important, as they are never referenced directly by the code (unlike sequence names).</span> Az index neve legyen logikus, de nem túl fontosak, mert soha nem hivatkozott közvetlenül a kódot (ellentétben sorrendben nevét).</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">Most of the indexes in the file as of this writing are there due to production testing of expensive queries on a busy wiki.</span> A legtöbb indexek a fájlt, mint az írás vannak miatt termékteszt drága lekérdezések egy forgalmas wiki.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">
== Keeping in sync with tables.sql ==
The script maintenance/postgres/compare_schemas.pl should be periodically run.</span>
== Tartva szinkronban tables.sql ==
A script karbantartási / postgres / compare_schemas.pl időközönként meg kell futtatni.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">It will parse both "tables.sql" files and produce any differences found.</span> Ez lesz feldolgozni mind "tables.sql" fájlt, és semmilyen eltérést találtak.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">Such differences should be fixed or exceptions specifically carved out by editing the script itself.</span> Az ilyen különbségek kell rögzíteni vagy kivétel kifejezetten vájt szerkesztésével a forgatókönyvet is.</span> <span class="notranslate" onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">This script has also been very useful in finding problems in maintenance/tables.sql itself, as it is very strict in the format it expects things to be in. :)
== Getting help ==
In addition to the normal venues (MediaWiki mailing lists and IRC channels), the #postgresql channel on irc.freenode.net is a friendly and expert resource if you should encounter a problem with your Postgres-enabled MediaWiki.</span> Ez a script is nagyon hasznos volt a megállapítás problémák karbantartási / tables.sql magát, mert nagyon szigorú ebben a formában, arra számít, hogy a dolgok a. :)
== Segítség ==
Amellett, hogy a szokásos helyszínen (MediaWiki levelezési és IRC csatornákat), a #postgresql csatorna az irc.freenode.net barátságos és szakértői erőforrás, ha kell szembenézniük, hogy probléma van a PostgreSQL-t támogató MediaWiki.</span>