Skip to content
Snippets Groups Projects
  1. Sep 29, 2000
  2. Sep 27, 2000
  3. Sep 26, 2000
  4. Sep 25, 2000
    • Tom Lane's avatar
      Correct error in grammar for subselect-in-FROM: SQL spec does not allow · e353e737
      Tom Lane authored
      omission of alias_clause for a subselect.
      e353e737
    • Tom Lane's avatar
      Use variable aliases, if supplied, rather than real column names in · 8bdc2bf0
      Tom Lane authored
      complaints about ungrouped variables.  This is for consistency with
      behavior elsewhere, notably the fact that the relname is reported as
      an alias in these same complaints.  Also, it'll work with subselect-
      in-FROM where old code didn't.
      8bdc2bf0
    • Tom Lane's avatar
      System neglected to complain about ungrouped variables passed to · 164caa39
      Tom Lane authored
      sublinks when outer query contained aggregates but no GROUP clause.
      164caa39
    • Bruce Momjian's avatar
      the patch include: · ebdfac3b
      Bruce Momjian authored
              - rename ichar() to chr() (discussed with Tom)
      
              - add docs for oracle compatible routines:
      
                      btrim()
                      ascii()
                      chr()
                      repeat()
      
              - fix bug with timezone in to_char()
      
              - all to_char() variants return NULL instead textin("")
                if it's needful.
      
       The contrib/odbc is without changes and contains same routines as main
      tree ... because I not sure how plans are Thomas with this :-)
      
                                              Karel
      ---------------------------------------------------------------------------
      
      This effectively one line patch should fix the fact that
      foreign key definitions in create table were erroring if
      a primary key was defined.  I was using the columns
      list to get the columns of the table for comparison, but
      it got reused as a temporary list inside the primary key
      stuff.
      
      Stephan Szabo
      ebdfac3b
    • Tom Lane's avatar
      Acquire read lock on a buffer while writing it out, to prevent · a8405cfc
      Tom Lane authored
      concurrent modifications to the page by other backends.
      a8405cfc
  5. Sep 24, 2000
  6. Sep 22, 2000
  7. Sep 20, 2000
  8. Sep 19, 2000
  9. Sep 18, 2000
  10. Sep 17, 2000
    • Peter Eisentraut's avatar
      Support for DESTDIR make variable. This is used as in `make install · 335248c9
      Peter Eisentraut authored
      DESTDIR=/else/where' and prepends the value of DESTDIR to the full
      installation paths (e.g., /else/where/usr/local/pgsql/bin). This allows
      users to install the package into a location different from the one that
      was configured and hard-coded into various scripts, e.g., for creating
      binary packages.
      
      DESTDIR is in many cases preferrable over `make install
      prefix=/else/where' because
      
      a) `prefix' affects the path that is hard-coded into the files, which can
      lead to a `make install prefix=xxx' (as done by the regression test
      driver) corrupting the files in the source tree with wrong paths.
      
      b) it doesn't work at all if a directory was overridden to not depend on
      `prefix', e.g., --sysconfdir=/etc.
      
      (Updating the regression test driver to use DESTDIR is a separate
      undertaking.)
      
      See also autoconf@gnu.org, From: Akim Demaille <akim@epita.fr>, Date: 08
      Sep 2000 12:48:59 +0200, Message-ID:
      <mv4em2vb1lw.fsf@nostromo.lrde.epita.fr>, Subject: Re: HTML format
      documentation.
      335248c9
  11. Sep 15, 2000
  12. Sep 12, 2000
    • Tom Lane's avatar
      First cut at full support for OUTER JOINs. There are still a few loose · ed5003c5
      Tom Lane authored
      ends to clean up (see my message of same date to pghackers), but mostly
      it works.  INITDB REQUIRED!
      ed5003c5
    • Tom Lane's avatar
      Fix relation-to-view conversion so that it doesn't try to convert a plain · 39ee0f55
      Tom Lane authored
      relation to a view when you create an ON INSERT/UPDATE/DELETE rule ...
      39ee0f55
    • Tom Lane's avatar
    • Tom Lane's avatar
    • Thomas G. Lockhart's avatar
      Modify date->timestamp conversion to use mktime(). · 4d745dad
      Thomas G. Lockhart authored
       This should do better than before around Daylight Savings Time
       transitions.
      4d745dad
    • Bruce Momjian's avatar
      This patch implements the following command: · 7f171b59
      Bruce Momjian authored
      ALTER TABLE <tablename> OWNER TO <username>
      
      Only a superuser may execute the command.
      
      --
      Mark Hollomon
      mhh@mindspring.com
      7f171b59
    • Bruce Momjian's avatar
      This patch implements a different "relkind" · 264c0682
      Bruce Momjian authored
      for views. Views are now have a "relkind" of
      RELKIND_VIEW instead of RELKIND_RELATION.
      
      Also, views no longer have actual heap storage
      files.
      
      The following changes were made
      
      1. CREATE VIEW sets the new relkind
      
      2. The executor complains if a DELETE or
              INSERT references a view.
      
      3. DROP RULE complains if an attempt is made
              to delete a view SELECT rule.
      
      4. CREATE RULE "_RETmytable" AS ON SELECT TO mytable DO INSTEAD ...
              1. checks to make sure mytable is empty.
              2. sets the relkind to RELKIND_VIEW.
              3. deletes the heap storage files.
      5. LOCK myview is not allowed. :)
      
      
      6. the regression test type_sanity was changed to
              account for the new relkind value.
      
      7. CREATE INDEX ON myview ... is not allowed.
      
      8. VACUUM myview is not allowed.
              VACUUM automatically skips views when do the entire
              database.
      
      9. TRUNCATE myview is not allowed.
      
      
      THINGS LEFT TO THINK ABOUT
      
      o pg_views
      
      o pg_dump
      
      o pgsql (\d \dv)
      o Do we really want to be able to inherit from views?
      
      o Is 'DROP TABLE myview' OK?
      
      --
      Mark Hollomon
      264c0682
    • Bruce Momjian's avatar
      Previous patch backed out. · 1da2feea
      Bruce Momjian authored
      Here is a patch against CVS (without my earlier patch)
      to disallow
      
      LOCK x
      
      if x is a view.
      
      It does not use the SPI interface.
      
      --
      Mark Hollomon
      1da2feea
    • Bruce Momjian's avatar
      This patch is for the TODO item · 7361e91a
      Bruce Momjian authored
      * Disallow LOCK on view
      
      src/backend/commands/command.c is the only affected file
      
      --
      Mark Hollomon
      7361e91a
    • Bruce Momjian's avatar
      O.K. - · 0ba0e321
      Bruce Momjian authored
      Here's the multibyte aware version of my patch to fix the truncation
      of the rulename autogenerated during a CREATE VIEW. I've modified all
      the places in the backend that want to construct the rulename to use
      the MakeRetrieveViewRuleName(), where I put the #ifdef MULTIBYTE, so
      that's the only place that knows how to construct a view rulename. Except
      pg_dump, where I replicated the code, since it's a standalone binary.
      
      The only effect the enduser will see is that views with names len(name)
      > NAMEDATALEN-4 will fail to be created, if the derived rulename clases
      with an existing rule: i.e. the user is trying to create two views with
      long names whose first difference is past NAMEDATALEN-4 (but before
      NAMEDATALEN: that'll error out after the viewname truncation.) In no
      case will the user get left with a table without a view rule, as the
      current code does.
      
      Ross Reedstrom
      0ba0e321
  13. Sep 07, 2000
  14. Sep 06, 2000
  15. Sep 05, 2000
    • Jan Wieck's avatar
      Added functions · daf1e3a7
      Jan Wieck authored
          quote_ident(text) returns text
          quote_literal(text) returns text
      
      These are handy to build up properly quoted query strings
      for the new PL/pgSQL EXECUTE functionality to submit
      dynamic DDL statements.
      
      Jan
      daf1e3a7
  16. Aug 31, 2000
  17. Aug 30, 2000
Loading