cucinato Fri May 10 18:58:51 2002 EDT Modified files: /phpdoc-it/reference/pgsql reference.xml Log: Completed first part of translation
Index: phpdoc-it/reference/pgsql/reference.xml diff -u phpdoc-it/reference/pgsql/reference.xml:1.3 phpdoc-it/reference/pgsql/reference.xml:1.4 --- phpdoc-it/reference/pgsql/reference.xml:1.3 Mon Apr 29 17:31:06 2002 +++ phpdoc-it/reference/pgsql/reference.xml Fri May 10 18:58:49 2002 @@ -1,91 +1,157 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.2 Maintainer: cortesi Status: working --> -<!-- CREDITS: fabio --> +<!-- EN-Revision: 1.6 Maintainer: cucinato Status: working --> +<!-- CREDITS: fabio --><!-- CREDITS: cortesi --><!-- CREDITS: denny --> <reference id="ref.pgsql"> <title>Funzioni PostgreSQL</title> <titleabbrev>PostgreSQL</titleabbrev> <partintro> + <para> + Postgres, sviluppato originariamente nel Dipartimento di Informatica +dell'Unniversità di + Berkeley, ha anticipato molti dei concetti su oggetti e relazioni che ora + stanno diventando disponibili in alcuni database commerciali. Postgres fornisce + supporto per il linguaggio SQL/92/SQL99, integrità transazionale ed estensibilità + dei tipi. PostgreSQL è un discendente open source dell'originario + codice di Berkeley. + </para> + <para> + Il database PostgreSQL è un prodotto Open Source ed è disponibile + gratuitamente. Per utilizzare il supporto a PostgreSQL, occorre PosgreSQL 6.5 o + versioni più recenti. PostgreSQL 7.0 o successivi permettono di abilitare tutte +le possibilità + di questo modulo. PostgreSQL ammette molte codifiche di carattere, tra cui + la codifica multibyte. La versione corrente e maggiori + informazioni su PostgreSQL sono disponibili su <ulink + url="&url.pgsql;">&url.pgsql;</ulink>. + </para> + <para> + Per abilitare il supporto PostgreSQL, + <option role="configure">--with-pgsql[=DIR]</option> è richiesto quando si compila + il PHP. Se è disponibile il modulo di libreria dinamico, questo può essere + caricato usando la direttiva <link linkend="ini.extension">extension</link> + in &php.ini; o la funzione <function>dl</function>. + Le direttive ini previste sono descritte in + <filename>php.ini-dist</filename> che è disribuito con il pacchetto dei sorgenti. + </para> <warning> <para> L'utilizzo del modulo PostgreSQL con PHP 4.0.6 non è raccomandato a causa - di un bug nella gestione dei messaggi. + di un bug nella gestione dei messaggi. Si usi PHP 4.1.0 o successivi. </para> </warning> <warning> <para> I nomi delle funzioni relative a PostgreSQL verranno cambiate a partire dalla versione 4.2.0 per - conformarsi agli standard di sviluppo attuali. La maggiorparte dei nuovi nomi avrà + conformarsi agli standard di sviluppo attuali. La maggior parte dei nuovi nomi +avrà underscore aggiuntivi, per esempio pg_lo_open(). Alcune funzioni verranno rinominate per dare consistenza. Per esempio pg_exec() diventerà pg_query(). I vecchi nomi potranno essere usati nella versione 4.2.0 e in alcune versioni - successive alla 4.2.0, ma potranno essere cancellate in futuro. Nella versione presente nel CVS - si trovano già i nuovi nomi delle funzioni. + successive alla 4.2.0, ma potranno essere cancellate in futuro. </para> - <example> - <title>Nomi delle funzioni cambiati</title> - <programlisting role="php"> -<![CDATA[ -VECCHIO NOME NUOVO NOME -pg_exec pg_query -getlastoid pg_last_oid -pg_cmdtuples pg_affected_rows -pg_errormessage pg_last_error -pg_numrows pg_num_rows -pg_numfields pg_num_fields -pg_fieldname pg_field_name -pg_fieldsize pg_field_size -pg_fieldtype pg_field_type -pg_fieldnum pg_field_num -pg_fieldprtlen pg_field_prtlen -pg_fieldisnull pg_field_is_null -pg_freeresult pg_free_result -pg_result pg_fetch_result -pg_loreadall pg_lo_read_all -pg_locreate pg_lo_create -pg_lounlink pg_lo_unlink -pg_loopen pg_lo_open -pg_loclose pg_lo_close -pg_loread pg_lo_read -pg_lowrite pg_lo_write -pg_loimport pg_lo_import -pg_loexport pg_lo_export -]]> - </programlisting> - </example> + <table> + <title>Nomi di funzione cambiati</title> + <tgroup cols="2"> + <thead> + <row> + <entry>Vecchio nome</entry> + <entry>Nuovo nome</entry> + </row> + </thead> + <tbody> + <row> + <entry><function>pg_exec</function></entry> + <entry><function>pg_query</function></entry> + </row> + <row> + <entry><function>pg_getlastoid</function></entry> + <entry><function>pg_last_oid</function></entry> + </row> + <row> + <entry><function>pg_cmdtuples</function></entry> + <entry><function>pg_affected_rows</function></entry> + </row> + <row> + <entry><function>pg_numrows</function></entry> + <entry><function>pg_num_rows</function></entry> + </row> + <row> + <entry><function>pg_numfields</function></entry> + <entry><function>pg_num_fields</function></entry> + </row> + <row> + <entry><function>pg_fieldname</function></entry> + <entry><function>pg_field_name</function></entry> + </row> + <row> + <entry><function>pg_fieldsize</function></entry> + <entry><function>pg_field_size</function></entry> + </row> + <row> + <entry><function>pg_fieldnum</function></entry> + <entry><function>pg_field_num</function></entry> + </row> + <row> + <entry><function>pg_fieldprtlen</function></entry> + <entry><function>pg_field_prtlen</function></entry> + </row> + <row> + <entry><function>pg_fieldisnull</function></entry> + <entry><function>pg_field_is_null</function></entry> + </row> + <row> + <entry><function>pg_freeresult</function></entry> + <entry><function>pg_free_result</function></entry> + </row> + <row> + <entry><function>pg_result</function></entry> + <entry><function>pg_fetch_result</function></entry> + </row> + <row> + <entry><function>pg_loreadall</function></entry> + <entry><function>pg_lo_read_all</function></entry> + </row> + <row> + <entry><function>pg_locreate</function></entry> + <entry><function>pg_lo_create</function></entry> + </row> + <row> + <entry><function>pg_lounlink</function></entry> + <entry><function>pg_lo_unlink</function></entry> + </row> + <row> + <entry><function>pg_loopen</function></entry> + <entry><function>pg_lo_open</function></entry> + </row> + <row> + <entry><function>pg_loclose</function></entry> + <entry><function>pg_lo_close</function></entry> + </row> + <row> + <entry><function>pg_loread</function></entry> + <entry><function>pg_lo_read</function></entry> + </row> + <row> + <entry><function>pg_lowrite</function></entry> + <entry><function>pg_lo_write</function></entry> + </row> + <row> + <entry><function>pg_loimport</function></entry> + <entry><function>pg_lo_import</function></entry> + </row> + <row> + <entry><function>pg_loexport</function></entry> + <entry><function>pg_lo_export</function></entry> + </row> + </tbody> + </tgroup> + </table> <para> - Obsolete pg_connect()/pg_pconnect() syntax will be depreciated to - support async connect feature in the future. Please use - connection string for pg_connect() and pg_pconnect(). + La vecchia sintassi di +<function>pg_connect</function>/<function>pg_pconnect</function> + sarà deprecata per supportare, in futuro, connessioni asincrone. + Si usi una stringa di connessione con <function>pg_connect</function> e + <function>pg_pconnect</function>. </para> </warning> <para> - Postgres, originariamente sviluppato nel UC Berkeley Computer Science - Department, è stato uno dei pionieri dei concetti object-relational - che ora stanno diventando disponibili in alcuni database commerciali. - Fornisce supporto al linguaggio SQL92/SQL3, all'integrità delle transazioni, - e all'estensibilità dei tipi di dato. PostgreSQL è un discendente Open Source - di questo codice Berkeley originale. - </para> - <para> - Il database PostgreSQL è un prodotto Open Source ed è disponibile liberamente. - Per usare il supporto per PostgreSQL, è necessario PostgreSQL 6.5 o - successivo. PostgreSQL 7.0 o successivo è necessario per poter abilitare tutte le feature del modulo - PostgreSQL. PostgreSQL supporta molte tabelle caratteri, incluse le tabelle - carattere multibyte. Versioni aggiornate e ulteriori - informazioni riguardo PostgreSQL sono disponibili qui: <ulink - url="&url.pgsql;">www.postgresql.org</ulink>. - </para> - <para> - Per abilitare il supporto per PostgreSQL, - è necessario usare "--with-pgsql[=DIR]" quando si compila - PHP. Se è disponibile uno shared object module, il modulo PostgreSQL può - essere caricato usando la direttiva <link linkend="ini.extension">extension</link> - nel <filename>php.ini</filename> la funzione <function>dl</function>. - Le direttive ini supportate sono descritte nel file <filename>php.ini-dist</filename> - che si trova nella distribuzione assieme al codice sorgente. - </para> - <para> Non tutte le funzioni sono supportate su tutte le architetture. Dipende dalla versione di libpq (L'interfaccia Client C per PostgreSQL) e da come libpq è compilato. Se c'è una funzione mancante, libpq non supporta @@ -109,36 +175,36 @@ <tgroup cols="3"> <thead> <row> - <entry>Postmaster</entry> - <entry>PHP</entry> - <entry>Status</entry> + <entry>Postmaster</entry> + <entry>PHP</entry> + <entry>Status</entry> </row> </thead> <tbody> <row> - <entry>postmaster &</entry> - <entry>pg_connect("dbname=NomeMioDatabase");</entry> - <entry>OK</entry> + <entry>postmaster &</entry> + <entry>pg_connect("dbname=NomeMioDatabase");</entry> + <entry>OK</entry> </row> <row> - <entry>postmaster -i &</entry> - <entry>pg_connect("dbname=NomeMioDatabase");</entry> - <entry>OK</entry> + <entry>postmaster -i &</entry> + <entry>pg_connect("dbname=NomeMioDatabase");</entry> + <entry>OK</entry> </row> <row> - <entry>postmaster &</entry> - <entry>pg_connect("host=localhost dbname=NomeMioDatabase");</entry> - <entry> - Unable to connect to PostgreSQL server: connectDB() failed: - Is the postmaster running and accepting TCP/IP (with -i) - connection at 'localhost' on port '5432'? in - /percorso/al/file.php on line 20. - </entry> + <entry>postmaster &</entry> + <entry>pg_connect("host=localhost dbname=MyDbName");</entry> + <entry> + Unable to connect to PostgreSQL server: connectDB() failed: + Is the postmaster running and accepting TCP/IP (with -i) + connection at 'localhost' on port '5432'? in + /path/to/file.php on line 20. + </entry> </row> <row> - <entry>postmaster -i &</entry> - <entry>pg_connect("host=localhost dbname=NomeMioDatabase");</entry> - <entry>OK</entry> + <entry>postmaster -i &</entry> + <entry>pg_connect("host=localhost dbname=MyDbName");</entry> + <entry>OK</entry> </row> </tbody> </tgroup>