~ubuntu-branches/ubuntu/trusty/postgresql-9.3/trusty-security

« back to all changes in this revision

Viewing changes to src/test/regress/sql/alter_table.sql

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2015-10-08 15:42:16 UTC
  • mfrom: (1.2.3) (18.1.3 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20151008154216-zvhdaqznz9qf4rw2
Tags: 9.3.10-0ubuntu0.14.04
* New upstream security/bug fix release: (LP: #1504132)
  - Guard against stack overflows in json parsing.
    If an application constructs PostgreSQL json or jsonb values from
    arbitrary user input, the application's users can reliably crash the
    PostgreSQL server, causing momentary denial of service.  (CVE-2015-5289)

  - Fix contrib/pgcrypto to detect and report too-short crypt() salts
    Certain invalid salt arguments crashed the server or disclosed a few
    bytes of server memory.  We have not ruled out the viability of attacks
    that arrange for presence of confidential information in the disclosed
    bytes, but they seem unlikely.  (CVE-2015-5288)

  - See release notes for details about other fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
339
339
alter table nv_child_2011 VALIDATE CONSTRAINT nv_child_2011_d_check;
340
340
explain (costs off) select * from nv_parent where d between '2009-08-01'::date and '2009-08-31'::date;
341
341
 
 
342
-- add an inherited NOT VALID constraint
 
343
alter table nv_parent add check (d between '2001-01-01'::date and '2099-12-31'::date) not valid;
 
344
\d nv_child_2009
 
345
-- we leave nv_parent and children around to help test pg_dump logic
342
346
 
343
347
-- Foreign key adding test with mixed types
344
348
 
1174
1178
select * from anothertab;
1175
1179
 
1176
1180
alter table anothertab alter column atcol1 type boolean; -- fails
 
1181
alter table anothertab alter column atcol1 type boolean using atcol1::int; -- fails
1177
1182
alter table anothertab alter column atcol1 type integer;
1178
1183
 
1179
1184
select * from anothertab;