|
1 | 1 | <!--
|
2 |
| -$PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.383 2005/10/03 02:21:16 momjian Exp $ |
| 2 | +$PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.384 2005/10/03 02:46:43 momjian Exp $ |
3 | 3 |
|
4 | 4 | Typical markup:
|
5 | 5 |
|
@@ -398,28 +398,28 @@ pg_[A-Za-z0-9_] <application>
|
398 | 398 | </para>
|
399 | 399 | <para>
|
400 | 400 | In previous releases, <function>nextval()</>,
|
401 |
| - <function>currval</>, and <function>setval()</> recorded |
402 |
| - sequence names as simple text strings, meaning that renaming or |
403 |
| - dropping a sequence used in a <command>DEFAULT</> made the |
404 |
| - clause invalid. This release stores all newly-created sequence |
405 |
| - function arguments using internal OIDs, allowing them to handle |
406 |
| - sequence renaming, and adding dependency information that |
407 |
| - prevents improper sequence removal. It also makes |
408 |
| - <command>DEFAULT</> clauses immune to schema search |
409 |
| - path changes. |
| 401 | + <function>currval</>, and <function>setval()</> recorded sequence |
| 402 | + names as simple text strings, meaning that renaming or dropping a |
| 403 | + sequence used in a <command>DEFAULT</> clause made the clause |
| 404 | + invalid. This release stores all newly-created sequence function |
| 405 | + arguments as internal OIDs, allowing them to handle sequence |
| 406 | + renaming, and adding dependency information that prevents |
| 407 | + improper sequence removal. It also makes <command>DEFAULT</> |
| 408 | + clauses immune to schema search path changes, and allows schema |
| 409 | + renaming. |
410 | 410 | </para>
|
411 | 411 | <para>
|
412 | 412 | Some applications might rely on the old text-based behavior of
|
413 |
| - run-time lookup of the sequence name. This can still be done by |
| 413 | + run-time lookup for sequence names. This can still be done by |
414 | 414 | casting the argument to <type>text</>, for example
|
415 | 415 | <literal>nextval('myseq'::text)</>.
|
416 | 416 | </para>
|
417 | 417 | <para>
|
418 | 418 | Pre-8.1 schemas loaded into 8.1 will use the previous, text-based
|
419 |
| - representation and therefore will not have these protections. |
420 |
| - However, it is possible to upgrade a database to the newer |
421 |
| - OID-based arguments. First, save this query into a file, such as |
422 |
| - <filename>fixseq.sql</>: |
| 419 | + representation and therefore will not have the features of |
| 420 | + OID-stored arguments. However, it is possible to upgrade a |
| 421 | + database loaded with pre-8.1 schemas. First, save this query into |
| 422 | + a file, such as <filename>fixseq.sql</>: |
423 | 423 | <programlisting>
|
424 | 424 | SELECT 'ALTER TABLE ' ||
|
425 | 425 | pg_catalog.quote_ident(n.nspname) || '.' ||
|
|
0 commit comments