From 2e964aee757c1000590fc38c411ebdfbd66d37fe Mon Sep 17 00:00:00 2001
From: Bruce Momjian Last updated: Thu Feb 24 19:33:07 EST 2005 Last updated: Fri Mar 11 16:42:06 EST 2005 Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
@@ -113,8 +113,9 @@
databases? There is also a Novell Netware 6 port at
http://forge.novell.com,
@@ -216,14 +217,14 @@
via email. The main web site to subscribe to the email lists is
http://www.postgresql.org/community/lists/. The general
- or bugs lists are a good place to start.
+ or bugs lists are a good place to start. The major IRC channel is #postgresql on Freenode
(irc.freenode.net). To connect you can use the Unix
program A list of commercial support companies is available at
@@ -412,7 +413,7 @@
href="http://www.php.net">http://www.php.net) is an excellent
interface. For complex cases, many use the Perl DBD::Pg with CGI.pm or
+ For complex cases, many use the Perl and DBD::Pg with CGI.pm or
mod_perl.Frequently Asked Questions (FAQ) for PostgreSQL
-
4.19) How do I return multiple rows or columns
from a function?
- 4.20) Why do I get "missing oid" errors when
- accessing temporary tables in PL/PgSQL functions?
+ 4.20) Why do I get "relation with OID #####
+ does not exist" errors when accessing temporary tables in PL/PgSQL
+ functions?
4.21) What encryption options are available?
@@ -196,7 +197,7 @@
and Win2003. A prepackaged installer is available at
http://pgfoundry.org/projects/pginstaller. MSDOS-based versions
- of Windows (Win95, Win98, WinMe) can run PostgreSQL using Cygwin.
+ of Windows (Win95, Win98, WinMe) can run PostgreSQL using Cygwin.irc -c '#postgresql' "$USER" irc.freenode.net
or use any of the other popular IRC clients. A Spanish one also exists
on the same network, (#postgresql-es), and a French one,
- (#postgresqlfr). There is also a PostgreSQL channel on EFNet.
+ (#postgresqlfr). There is also a PostgreSQL channel on EFNet.2.3) Does PostgreSQL have a graphical user
@@ -481,7 +482,7 @@
@@ -608,7 +609,7 @@
SELECT time, use a cursor and
FETCH.
To SELECT a random row, use: +
To SELECT a random row, use:
SELECT col FROM tab @@ -642,7 +643,7 @@4.3) How do you change a column's data type?
Changing the data type of a column can be done easily in 8.0 - and later with ALTER TABLE ALTER COLUMN TYPE. + and later with ALTER TABLE ALTER COLUMN TYPE.
In earlier releases, do this:
@@ -660,7 +661,7 @@These are the limits:
-+
Maximum size for a database? unlimited (32 TB databases exist) @@ -730,7 +731,7 @@ table? Maximum size for a table? 32 TB unlimited used if the table is larger than a minimum size, and the query selects only a small percentage of the rows in the table. This is because the random disk access caused by an index scan can be - slower than a straight read through the table, or sequential scan. + slower than a straight read through the table, or sequential scan.To determine if an index should be used, PostgreSQL must have statistics about the table. These statistics are collected using @@ -842,7 +843,7 @@ table?
unlimited 4.10) What is the difference between the various character types?
-+
Type Internal Name Notes @@ -1056,10 +1057,11 @@ length VARCHAR(n) varchar size specifies maximum length, no padding It is easy using set-returning functions, - http://techdocs.postgresql.org/guides/SetReturningFunctions. + http://techdocs.postgresql.org/guides/SetReturningFunctions
. -4.20) Why do I get "missing oid" errors when - accessing temporary tables in PL/PgSQL functions?
+4.20) Why do I get "relation with OID ##### + does not exist" errors when accessing temporary tables in PL/PgSQL + functions?
PL/PgSQL caches function scripts, and an unfortunate side effect is that if a PL/PgSQL function accesses a temporary table, and that @@ -1080,7 +1082,7 @@ length pg_hba.conf, and the client sslmode must not be disable. (Note that it is also possible to use a third-party encrypted transport, such as stunnel or ssh, rather than PostgreSQL's - native SSL connections.) + native SSL connections.)
Database user passwords are automatically encrypted when stored in the system tables. The server can run using an encrypted file system. diff --git a/doc/src/FAQ/FAQ_DEV.html b/doc/src/FAQ/FAQ_DEV.html index c43dc78af49..76872983670 100644 --- a/doc/src/FAQ/FAQ_DEV.html +++ b/doc/src/FAQ/FAQ_DEV.html @@ -13,7 +13,7 @@Developer's Frequently Asked Questions (FAQ) for PostgreSQL
-Last updated: Wed Jan 5 17:36:58 EST 2005
+Last updated: Fri Mar 11 16:43:05 EST 2005
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
@@ -26,9 +26,7 @@
-1.1) How do I get involved in PostgreSQL development? General Questions
-
1.2) What development environment is required @@ -59,9 +57,7 @@ site development?
-2.1) How do I efficiently access information in tables from the backend code? Technical Questions
-
2.2) Why are table, column, type, function, @@ -83,7 +79,7 @@General Questions
-1.1) How go I get involved in PostgreSQL +
1.1) How do I get involved in PostgreSQL development?
Download the code and have a look around. See +
-A web site is maintained for patches that are ready to be applied, + + http://momjian.postgresql.org/cgi-bin/pgpatches, and + those that are being kept for the next release, + + http://momjian.postgresql.org/cgi-bin/pgpatches2.
+1.5) Where can I learn more about the code?
@@ -192,7 +195,7 @@Basic system testing
The easiest way to test your code is to ensure that it builds - against the latest verion of the code and that it does not generate + against the latest version of the code and that it does not generate compiler warnings.
It is worth advised that you pass --enable-cassert to @@ -210,7 +213,7 @@ directory of the source tree. If any tests failure, investigate.
-If you've deliberately changed existing behaviour, this change +
If you've deliberately changed existing behavior, this change may cause a regression test failure but not any actual regression. If so, you should also patch the regression test suite.
@@ -472,7 +475,7 @@The initscript; -Any other ancilliary scripts and files; +Any other ancillary scripts and files; A README.rpm-dist document that tries to adequately document both the differences between the RPM build and the WHY of the @@ -601,7 +604,7 @@ cvs ... checkout pgsql - To get a past branch, you cd to whereever you want it and +
To get a past branch, you cd to wherever you want it and say
cvs ... checkout -r BRANCHNAME pgsql @@ -682,7 +685,7 @@ questions about development of new features, on IRC at irc.freenode.net in the #postgresql channel.1.18) How go I get involved in PostgreSQL +
1.18) How do I get involved in PostgreSQL web site development?
PostgreSQL website development is discussed on the @@ -690,15 +693,13 @@ the source code is available at http://gborg.postgresql.org/project/pgweb/projdisplay.php , the code for the next version of the website is under the - "portal" module. You will al so find code for the "techdocs" + "portal" module. You will also find code for the "techdocs" website if you would like to contribute to that. A temporary todo list for current website development issues is available at http://xzilla.postgresql.org/todo
-Technical Questions
-2.1) How do I efficiently access information in tables from the backend code?
@@ -810,7 +811,7 @@
- lfirst(i), lfirst_int(i), lfirst_oid(i)
-- return the data (a point, inteter and OID respectively) at +
- return the data (a point, integer and OID respectively) at list element i.
- lnext(i)
diff --git a/doc/src/FAQ/FAQ_MINGW.html b/doc/src/FAQ/FAQ_MINGW.html index 924d20ef4d8..2f8bfc4ced6 100644 --- a/doc/src/FAQ/FAQ_MINGW.html +++ b/doc/src/FAQ/FAQ_MINGW.html @@ -71,8 +71,6 @@ The mailing list for discussion is pgsql-hackers-win32@postgresql.org. You can subscribe by sending an email body containing the word subscribe to pgsql-hackers-win32-request@postgresql.org.
--
Resources
There are several resources that helped us complete this port:
diff --git a/doc/src/FAQ/FAQ_brazilian.html b/doc/src/FAQ/FAQ_brazilian.html index a07ffbdf9c1..ad123d5bee9 100644 --- a/doc/src/FAQ/FAQ_brazilian.html +++ b/doc/src/FAQ/FAQ_brazilian.html @@ -17,7 +17,7 @@
Traduzido por: Euler Taveira de Oliveira (eulerto@yahoo.com.br)
+ "mailto:eulerto@yahoo.com.br">eulerto@yahoo.com.br)A versão mais recente desse documento pode ser vista em @@ -202,14 +202,14 @@ baseados no NT tais como Win2000, WinXP e Win2003. Um instalador está disponível em - http://pgfoundry.org/projects/pginstaller Versões do Windows - baseados no MSDOS (Win95, Win98, WinMe) podem executar o PostgreSQL utilizando o Cygwin. + http://pgfoundry.org/projects/pginstaller Versões do Windows + baseados no MSDOS (Win95, Win98, WinMe) podem executar o PostgreSQL utilizando o Cygwin.
Há também um porte para Novell Netware 6 em http://forge.novell.com - e uma versão para OS/2 (eComStation) em - http://hobbes.nmsu.edu/cgi-bin/h-search?sh=1&button=Search&key=postgreSQL&stype=all&sort=type&dir=%2F.
+ e uma versão para OS/2 (eComStation) em + http://hobbes.nmsu.edu/cgi-bin/h-search?sh=1&button=Search&key=postgreSQL&stype=all&sort=type&dir=%2F.1.5) Onde eu posso conseguir o PostgreSQL?
@@ -253,7 +253,7 @@ Há também uma lista de discussão dos desenvolvedores disponOutras listas de discussões e informações sobre o PostgreSQL podem ser encontradas na homepage do PostgreSQL em:
- http://www.PostgreSQL.org +O principal canal de IRC é o #postgresql na Freenode (irc.freenode.net). Para se conectar você pode utilizar o comando Unix
@@ -499,9 +499,9 @@ Há também uma lista de discussão dos desenvolvedores disponirc -c '#postgresql' "$USER" irc.freenode.net
ou utilizar qualquer outro cliente de IRC. Um canal hispânico (#postgresql-es) e um francês (#postgresqlfr) também existem na mesma rede. Há também um canal PostgreSQL na EFNet.Se o postmaster não está sendo executado, você pode executar o núcleo do postgres a partir da linha de comando, e digitar a sua sentença SQL diretamente. Isso é recomendado somente para fins de depuração. Note que uma nova linha termina a consulta, e não um ponto-e-vírgula. Se você compilou com símbolos de depuração, você pode utilizar um depurador para ver o que está acontecendo. Como o núcleo (backend) não foi iniciado a partir do postmaster, ele não está executando em um ambiente idêntico e problemas de iteração com o núcleo/travamento não podem ser reproduzidos.
-Se o postmaster está sendo executado, inicie o psql em uma janela, e então encontre o PID do processo postgres utilizado pelo psql utilizando
SELECT pg_backend_pid(). Utilize um depurador para anexar ao PID do postgres. Você pode definir pontos de parada (breakpoints) no depurador e digitar consultas no psql. Se você está depurando a inicialização do postgres, você pode definir PGOPTIONS="-W n" e então iniciar o psql. Isto retardará a inicialização por n segundos então você pode anexar o depurador ao processo, definir quaisquer pontos de parada e continuar pela sequência de inicialização. +Se o postmaster está sendo executado, inicie o psql em uma janela, e então encontre o PID do processo postgres utilizado pelo psql utilizando
-SELECT pg_backend_pid()
. Utilize um depurador para anexar ao PID do postgres. Você pode definir pontos de parada (breakpoints) no depurador e digitar consultas no psql. Se você está depurando a inicialização do postgres, você pode definir PGOPTIONS="-W n" e então iniciar o psql. Isto retardará a inicialização por n segundos então você pode anexar o depurador ao processo, definir quaisquer pontos de parada e continuar pela sequência de inicialização.Há várias variáveis de configuração do servidor
log_*que habilitam a exibição de estatísticas que podem ser muito úteis para depuração e medidas de performance. +Há várias variáveis de configuração do servidor
log_*
que habilitam a exibição de estatísticas que podem ser muito úteis para depuração e medidas de performance.Você também pode compilar com perfil para ver que funções estão demandando tempo de execução. Os arquivo de perfil do núcleo (backend) serão colocados no diretório pgsql/data/base/dbname. O arquivo de perfil do cliente será colocado no diretório atual do cliente. O Linux requer uma compilação com -DLINUX_PROFILE para criação dos perfis.
@@ -526,7 +526,7 @@ Há também uma lista de discussão dos desenvolvedores dispon3.11) Que tipo de hardware eu devo usar?
-Por causa do hardware de PC ser em sua maioria compatível, pessoas tendem a acreditar que todos os hardwares de PC são de mesma qualidade. Não é verdade. ECC RAM, SCSI e placas mãe de qualidade são mais confiáveis e têm uma melhor performance do que hardwares mais baratos. O PostgreSQL executará em quase todo hardware, mas se a confiabilidade e a performance forem importantes é prudente pesquisar sobre as opções de hardware. Nossas listas de discussão podem ser usadas para discutir opções de hardware e dilemas.
+Por causa do hardware de PC ser em sua maioria compatível, pessoas tendem a acreditar que todos os hardwares de PC satilde;o de mesma qualidade. Natilde;o é verdade. ECC RAM, SCSI e placas mãe de qualidade são mais confiáveis e têm uma melhor performance do que hardwares mais baratos. O PostgreSQL executará em quase todo hardware, mas se a confiabilidade e a performance forem importantes é prudente pesquisar sobre as opções de hardware. Nossas listas de discussão podem ser usadas para discutir opções de hardware e dilemas.
@@ -543,7 +543,7 @@ Há também uma lista de discussão dos desenvolvedores disponToda a consulta tem que ser avaliada, mesmo se você só quer os primeiros registros. Considere utilizar uma consulta que tenha um ORDER BY. Se há um índice que combina com o ORDER BY, o PostgreSQL pode ser capaz de avaliar somente os primeiros registros requisitados, ou toda consulta tem que ser avaliada até que os registros desejados tenham sido gerados.
-Para obter um registro randômico, utilize: +
Para obter um registro randômico, utilize:
SELECT col FROM tab @@ -639,7 +639,7 @@ Número máximo de índices em uma tabela? ilimitado utilizados se uma tabela é maior do que o tamanho mínimo e uma consulta seleciona somente uma porcentagem pequena de registros de uma tabela. Isto porque o acesso randômico ao disco causado por uma busca por índice pode ser - mais lento do que uma leitura ao longo da tabela ou uma busca sequencial. + mais lento do que uma leitura ao longo da tabela ou uma busca sequencial.Para determinar se um índice pode ser utilizado, o PostgreSQL deve ter estatísticas sobre a tabela. Estas estatísticas são coletadas utilizando @@ -686,11 +686,10 @@ Número máximo de índices em uma tabela? ilimitado
A localidade padrão C deve ser utilizada durante o initdb porque não é possível saber o próximo/maior caracter em uma localidade que não seja a C. Você pode criar um índice - especial -text_pattern_opspara tais casos que funcionam somente para - indexação utilizandoLIKE. + especial text_pattern_ops para tais casos que funcionam somente para + indexação utilizando LIKE.
Em versões anteriores a 8.0, índices frequentemente não podiam ser usados a menos que os tipos de dados correspodessem aos tipos da coluna do índice. Isto é particularmente verdadeiro para índices de coluna int2, int8 e numeric.
@@ -922,14 +921,15 @@ Veja a página sobre create_sequence no manual para mais informa&cc FROM tab WHERE col IN (SELECT subcol FROM subtab); - por: +por:
SELECT * FROM tab WHERE EXISTS (SELECT subcol FROM subtab WHERE subcol = col);- -Para isto ser rápido,subcol
deve ser uma coluna indexada.A partir da versão 7.4,
IN
utiliza a mesma técnica de agrupamento do que consultas normais, e é recomendado utilizarEXISTS
. - ++Para isto ser rápido,
+subcol
deve ser uma coluna indexada.A partir da versão 7.4,
IN
utiliza a mesma técnica de agrupamento do que consultas normais, e é recomendado utilizarEXISTS
. +4.23) Como eu faço uma junção externa (outer join)?
PostgreSQL suporta junções externas utilizando a sintaxe padrão do SQL. Aqui temos dois exemplos:
@@ -965,7 +965,7 @@ Para isto ser rápido,subcol
deve ser uma coluna indexada. <4.25) Como eu retorno múltiplos registros ou colunas de uma função?
-No 7.3, você pode facilmente retornar múltiplos registros ou colunas de uma função, http://techdocs.postgresql.org/guides/SetReturningFunctions. +
No 7.3, você pode facilmente retornar múltiplos registros ou colunas de uma função, http://techdocs.postgresql.org/guides/SetReturningFunctions.
4.26) Por que eu não posso confiar na criação/remoção de tabelas temporárias em funções PL/PgSQL?
PL/PgSQL armazena o conteúdo da função, e o efeito indesejado é que se uma função PL/PgSQL acessa uma tabela temporária, e aquela tabela é removida e criada novamente, e a função é chamada novamente, a função irá falhar porque o conteúdo armazenado da função ainda apontará para a tabela temporária antiga. A solução é utilizar o EXECUTE para acesso a tabelas temporárias no PL/PgSQL. Isto irá fazer com que a consulta seja avaliada toda vez.
@@ -973,7 +973,7 @@ Para isto ser rápido,subcol
deve ser uma coluna indexada. <4.27) Que opções para encriptação estão disponíveis?
diff --git a/doc/src/FAQ/FAQ_czech.html b/doc/src/FAQ/FAQ_czech.html index cb91c8eb90e..05079c79767 100644 --- a/doc/src/FAQ/FAQ_czech.html +++ b/doc/src/FAQ/FAQ_czech.html @@ -129,7 +129,7 @@
- No contrib/pgcrypto contém muitas funções de encriptação para serem utilizados em consultas SQL.
-- Para encriptar a transmissão do cliente ao servidor, o servidor deve ter a opção ssl definida como true no postgresql.conf, e um registro host ou hostssl deve existir no pg_hba.conf, e o sslmode no cliente não deve estar disable. (Note que também é possível utilizar outros esquemas de transporte encriptado, tais como stunnel ou ssh, ao invés da conexão SSL nativa do PostgreSQL.) +
- Para encriptar a transmissão do cliente ao servidor, o servidor deve ter a opção ssl definida como true no postgresql.conf, e um registro host ou hostssl deve existir no pg_hba.conf, e o sslmode no cliente não deve estar disable. (Note que também é possível utilizar outros esquemas de transporte encriptado, tais como stunnel ou ssh, ao invés da conexão SSL nativa do PostgreSQL.)
- Senhas dos usuários do banco de dados são automaticamente encriptadas quando armazenadas na versão 7.3. Em versões anteriores, você deve habilitar a opção PASSWORD_ENCRYPTION no postgresql.conf.
- O servidor pode executar utilizando um sistema de arquivos encriptado.
Obecné otázky
-1.1) Co je PostgreSQL? Jak se vyslovuje? +
1.1) Co je PostgreSQL? Jak se vyslovuje?
PostgreSQL se vyslovuje Post-Gres-Q-L. Zvukový záznam je dostupný na adrese .
@@ -206,18 +206,18 @@ Win32 knihovny libpq a psql. K databázi PostgerSQL lze pøistupovat skrze rozhraní ODBC. -Server
+
Server
Server mù¾e být na WindowsNT a Win2k provozován pouze s knihovnou Cygwin, Cygnus Unix/NT porting library. Více pgsql/doc/FAQ_MSWIN v distribuci nebo MS Windows FAQ na adrese - http://www.PostgreSQL.org/docs/faqs/text/FAQ_MSWIN. + http://www.PostgreSQL.org/docs/faqs/text/FAQ_MSWIN.
Na nativním portu pro MS Win NT/2000/XP se pracuje. Dal¹í informace o aktuálním stavu PostgreSQL pro Windows naleznet na adrese http://techdocs.postgresql.org/guides/Windows a - http://momjian.postgresql.org/main/writings/pgsql/win32.html. + http://momjian.postgresql.org/main/writings/pgsql/win32.html.
Existující port pro Novell Netware 6 naleznete na http://forge.novell.com.
@@ -238,7 +238,7 @@ subscribe end - na adresu +na adresu pgsql-general-request@PostgreSQL.org.
Mù¾ete si vy¾ádat denní pøehled (diggest), který má zhruba 30K dennì @@ -254,7 +254,7 @@
Seznam dal¹ích konferencí naleznete na stránkách PostgreSQL:
- http://www.postgresql.org +1.7) Jaká je poslední verze?
@@ -315,7 +315,7 @@Nejdøíve si stáhnìte nejnovìj¹í zdroje a pøeètìte si vývojáøskou dokumentaci na na¹em webu nebo v distribuci. Pak se pøihla¹te do - konferencí pgsql-hackers a
pgsql-patches. Kvalitní záplaty posílejte do + konferencí pgsql-hackers a pgsql-patches. Kvalitní záplaty posílejte do pgsql-patches.
Právo commit má v CVS archivu asi tøinácti lidí. Ka¾dý z nich poslal @@ -341,7 +341,7 @@ DBMS, napø. transakce, vnoøené dotazy, spou¹tì, pohledy, kontrolu referenèní integrity a sofistikované zamykání. Podporuje nìkteré vlastnosti, které tyto systémy nemají, u¾ivatelem definované typy, - dìdiènost, pravidla, MVCC redukující zamykání. + dìdiènost, pravidla, MVCC redukující zamykání.
Výkon Výkonnostnì je na tom PostgreSQL podobnì jako dal¹í komerèní ale @@ -363,7 +363,7 @@ kód s minimem chyb. Ka¾dá verze je více ne¾ mìsíc v beta testování, a na¹e historie verzí ukazuje, ¾e mù¾eme nabídnout stabilní, solidní verze, které jsou pøipraveny pro reálné nasazení. V této oblasti - jsme srovnatelní s dal¹ími databázemi. + jsme srovnatelní s dal¹ími databázemi.
Podpora Na na¹í mailové konferenci mù¾ete kontaktovat velkou skupinu @@ -375,7 +375,7 @@ kteøí vy¾adují podporu ke konkrétním pøípadùm, existuje placená podpora (FAQ sekce 1.6). -Cena + Cena PosgreSQL lze volnì pou¾ívat pro nekomerèní i komerèní pou¾ití. Mù¾ete do svých produktù pøidat ná¹ kód bez omezení, respektive v souladu s podmínkami na¹í licenèní smlouvy (v duchu BSD licence).
@@ -553,7 +553,7 @@ napøíklad:cd /usr/local/pgsql - ./bin/postmaster > server.log 2>&1 & + ./bin/postmaster > server.log 2>&1 &Tím se vytvoøí log v adresáøi PostgreSQL, Tento soubor obsahuje u¾iteèné informace o problémech a chybách vyskytlých se na serveru. Postmaster má @@ -773,7 +773,7 @@
Jinak je tomu v pøípadì pou¾ití LIMIT a ORDER BY, pøi kterém se vìt¹inou index pou¾ije, výsledkem je pouze malá èást tabulky. Funkce MAX() a - MIN() nepou¾ívají indexy, ale je mo¾né tuté¾ hodnotu získat: + MIN() nepou¾ívají indexy, ale je mo¾né tuté¾ hodnotu získat:
SELECT col FROM tab @@ -791,7 +791,7 @@+
- vzor LIKE nesmí zaèínat %
- ~ regulární výraz musí zaèínat ^
-vzor nesmí zaèínat intervalem, napø. [a-e] vyhledávaní, které není Case sensitiv jako je ILIKE nebo ~* nepou¾ívá indexy. Mù¾ete ale pou¾ít funkcionální indexy, které jsou @@ -926,7 +926,7 @@ BYTEA bytea pole byt Koneènì mù¾ete pou¾ít OID hodnotu vrácenou pøíkazem INSERT, ale to je pravdìpodobnì nejménì pøenositelné øe¹ení. V Perlu pøi pou¾ití DBI modulu Edmunda Mergleho DBD:Pg oid hodnotu získáme $sth->{pg_oid_status} - po ka¾dém $sth->execute(). + po ka¾dém $sth->execute().
4.15.3) Nepovede currval() a nextval() k rozhození podmínek pøi soubìhu s jinými u¾ivateli?
@@ -986,7 +986,7 @@ BYTEA bytea pole bytpøidání, vkládání (append, insert) OID, serial value (OID, serial value) portal, kurzor (portal, cursor) -range variable, jméno tabulky, alias tabulky (range +range variable, jméno tabulky, alias tabulky (range variable, table name, table alias) @@ -1038,13 +1038,13 @@ CREATE TABLE test (x int, modtime timestamp DEFAULT CURRENT_TIMESTAMP );Døívìj¹í verze (pøed 7.4) spojovali vnoøené dotazy k vnìj¹ím sekvenèním ètením výsledku poddotazu pro ka¾dý øádek vnìj¹ího dotazu. Pokud poddotaz vrátil nìkolik málo øádkù IN bylo rychlé. Pro ostatní pøípady je vhodné - nahradit IN EXISTS: + nahradit IN EXISTS:
SELECT * FROM tab WHERE col IN (SELECT subcol FROM subtab);- na: +na:
SELECT * FROM tab @@ -1101,7 +1101,7 @@ CREATE TABLE test (x int, modtime timestamp DEFAULT CURRENT_TIMESTAMP );V PostgreSQL 7.3 mù¾ete jednodu¹e vracet více øádkù nebo sloupcù z funkce, viz: - http://techdocs.postgresql.org/guides/SetReturningFunctions. + http://techdocs.postgresql.org/guides/SetReturningFunctions.
4.26) Proè nelze spolehlivì vytváøet a ru¹it doèasné tabulky v PL/pgSQL funkcích?
@@ -1164,4 +1164,4 @@ CREATE TABLE test (x int, modtime timestamp DEFAULT CURRENT_TIMESTAMP ); pøepínaè --enable-depend pøíkazu configure k automatickému øe¹ení závislostí pøekladaèem.