~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-security

« back to all changes in this revision

Viewing changes to doc/src/sgml/html/ddl-inherit.html

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-02-05 18:13:52 UTC
  • mfrom: (1.1.10) (10.1.5 oneiric-proposed)
  • Revision ID: package-import@ubuntu.com-20130205181352-3kw4f94ilqklzm7c
Tags: 9.1.8-0ubuntu11.10
* New upstream security/bug fix release: (LP: #1116336)
  - Prevent execution of enum_recv from SQL
    The function was misdeclared, allowing a simple SQL command to crash the
    server.  In principle an attacker might be able to use it to examine the
    contents of server memory.  Our thanks to Sumit Soni (via Secunia SVCRP)
    for reporting this issue. (CVE-2013-0255)
  - See HISTORY/changelog.gz for the other bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
REV="MADE"
10
10
HREF="mailto:pgsql-docs@postgresql.org"><LINK
11
11
REL="HOME"
12
 
TITLE="PostgreSQL 9.1.5 Documentation"
 
12
TITLE="PostgreSQL 9.1.8 Documentation"
13
13
HREF="index.html"><LINK
14
14
REL="UP"
15
15
TITLE="Data Definition"
26
26
HTTP-EQUIV="Content-Type"
27
27
CONTENT="text/html; charset=ISO-8859-1"><META
28
28
NAME="creation"
29
 
CONTENT="2012-08-14T22:55:48"></HEAD
 
29
CONTENT="2013-02-04T21:38:53"></HEAD
30
30
><BODY
31
31
CLASS="SECT1"
32
32
><DIV
44
44
VALIGN="bottom"
45
45
><A
46
46
HREF="index.html"
47
 
>PostgreSQL 9.1.5 Documentation</A
 
47
>PostgreSQL 9.1.8 Documentation</A
48
48
></TH
49
49
></TR
50
50
><TR
236
236
> keyword.
237
237
  </P
238
238
><P
 
239
>   You can also write the table name with a trailing <TT
 
240
CLASS="LITERAL"
 
241
>*</TT
 
242
>
 
243
   to explicitly specify that descendant tables are included:
 
244
 
 
245
</P><PRE
 
246
CLASS="PROGRAMLISTING"
 
247
>SELECT name, altitude
 
248
    FROM cities*
 
249
    WHERE altitude &gt; 500;</PRE
 
250
><P>
 
251
 
 
252
   Writing <TT
 
253
CLASS="LITERAL"
 
254
>*</TT
 
255
> is not necessary, since this behavior is
 
256
   the default (unless you have changed the setting of the
 
257
   <A
 
258
HREF="runtime-config-compatible.html#GUC-SQL-INHERITANCE"
 
259
>sql_inheritance</A
 
260
> configuration option).
 
261
   However writing <TT
 
262
CLASS="LITERAL"
 
263
>*</TT
 
264
> might be useful to emphasize that
 
265
   additional tables will be searched.
 
266
  </P
 
267
><P
239
268
>   In some cases you might wish to know which table a particular row
240
269
   originated from. There is a system column called
241
270
   <TT
482
511
   not <TT
483
512
CLASS="LITERAL"
484
513
>INSERT</TT
485
 
> and <TT
 
514
> or <TT
486
515
CLASS="LITERAL"
487
516
>ALTER TABLE ...
488
517
   RENAME</TT
499
528
CLASS="LITERAL"
500
529
>VACUUM</TT
501
530
>)
502
 
   typically only work on individual, physical tables and do no
 
531
   typically only work on individual, physical tables and do not
503
532
   support recursing over inheritance hierarchies.  The respective
504
 
   behavior of each individual command is documented in the reference
505
 
   part (<A
 
533
   behavior of each individual command is documented in its reference
 
534
   page (<A
506
535
HREF="sql-commands.html"
507
536
>Reference I, <I
508
537
>SQL Commands</I
607
636
   but in the meantime considerable care is needed in deciding whether
608
637
   inheritance is useful for your application.
609
638
  </P
610
 
><DIV
611
 
CLASS="NOTE"
612
 
><BLOCKQUOTE
613
 
CLASS="NOTE"
614
 
><P
615
 
><B
616
 
>Deprecated: </B
617
 
>     In releases of <SPAN
618
 
CLASS="PRODUCTNAME"
619
 
>PostgreSQL</SPAN
620
 
> prior to 7.1, the
621
 
     default behavior was not to include child tables in queries. This was
622
 
     found to be error prone and also in violation of the SQL
623
 
     standard.  You can get the pre-7.1 behavior by turning off the
624
 
     <A
625
 
HREF="runtime-config-compatible.html#GUC-SQL-INHERITANCE"
626
 
>sql_inheritance</A
627
 
> configuration
628
 
     option.
629
 
   </P
630
 
></BLOCKQUOTE
631
 
></DIV
632
639
></DIV
633
640
></DIV
634
641
><DIV