1. 23 9月, 2002 3 次提交
  2. 22 9月, 2002 4 次提交
    • T
      Move most of the error checking for foreign-key constraints out of · ac355d55
      Tom Lane 提交于
      parse analysis and into the execution code (in tablecmds.c).  This
      eliminates a lot of unreasonably complex code that needed to have two
      or more execution paths in case it was dealing with a not-yet-created
      table column vs. an already-existing one.  The execution code is always
      dealing with already-created tables and so needs only one case.  This
      also eliminates some potential race conditions (the table wasn't locked
      between parse analysis and execution), makes it easy to fix the gripe
      about wrong referenced-column names generating a misleading error message,
      and lets us easily add a dependency from the foreign-key constraint to
      the unique index that it requires the referenced table to have.  (Cf.
      complaint from Kris Jurka 12-Sep-2002 on pgsql-bugs.)
      
      Also, third try at building a deletion mechanism that is not sensitive
      to the order in which pg_depend entries are visited.  Adding the above-
      mentioned dependency exposed the folly of what dependency.c had been
      doing: it failed for cases where B depends on C while both auto-depend
      on A.  Dropping A should succeed in this case, but was failing if C
      happened to be visited before B.  It appears the only solution is two
      separate walks over the dependency tree.
      ac355d55
    • T
      Add last-ditch defense against attempts to compile datetime code with · e303a2db
      Tom Lane 提交于
      -ffast-math.
      e303a2db
    • T
      Provide an upgrade strategy for dump files containing functions declared · eb3adab5
      Tom Lane 提交于
      with OPAQUE.  CREATE LANGUAGE, CREATE TRIGGER, and CREATE TYPE will all
      accept references to functions declared with OPAQUE --- but they will
      issue a NOTICE, and will modify the function entries in pg_proc to have
      the preferred type-safe argument or result types instead of OPAQUE.
      Per recent pghackers discussions.
      eb3adab5
    • P
      Add more appropriate markup. · bc499687
      Peter Eisentraut 提交于
      bc499687
  3. 21 9月, 2002 6 次提交
  4. 20 9月, 2002 16 次提交
  5. 19 9月, 2002 5 次提交
    • T
      Extend pg_cast castimplicit column to a three-way value; this allows us · b26dfb95
      Tom Lane 提交于
      to be flexible about assignment casts without introducing ambiguity in
      operator/function resolution.  Introduce a well-defined promotion hierarchy
      for numeric datatypes (int2->int4->int8->numeric->float4->float8).
      Change make_const to initially label numeric literals as int4, int8, or
      numeric (never float8 anymore).
      Explicitly mark Func and RelabelType nodes to indicate whether they came
      from a function call, explicit cast, or implicit cast; use this to do
      reverse-listing more accurately and without so many heuristics.
      Explicit casts to char, varchar, bit, varbit will truncate or pad without
      raising an error (the pre-7.2 behavior), while assigning to a column without
      any explicit cast will still raise an error for wrong-length data like 7.3.
      This more nearly follows the SQL spec than 7.2 behavior (we should be
      reporting a 'completion condition' in the explicit-cast cases, but we have
      no mechanism for that, so just do silent truncation).
      Fix some problems with enforcement of typmod for array elements;
      it didn't work at all in 'UPDATE ... SET array[n] = foo', for example.
      Provide a generalized array_length_coerce() function to replace the
      specialized per-array-type functions that used to be needed (and were
      missing for NUMERIC as well as all the datetime types).
      Add missing conversions int8<->float4, text<->numeric, oid<->int8.
      initdb forced.
      b26dfb95
    • B
      Add mention of /contrib/adddepend to HISTORY. · cc70ba2e
      Bruce Momjian 提交于
      cc70ba2e
    • B
      9152bebf
    • P
      Update installation instructions and put mostly everything in one place. · da123b7c
      Peter Eisentraut 提交于
      Also, some editing in PL/Perl and PL/Python chapters.
      da123b7c
    • P
      Remove pgeasy and odbc. · 0db8c415
      Peter Eisentraut 提交于
      0db8c415
  6. 18 9月, 2002 6 次提交