1. 01 Aug, 1998 1 commit
    • Marc G. Fournier's avatar
      · 0668aa88
      Marc G. Fournier authored
      Adrian Hall reported a problem to me that snprintf() doesn't exist in, at
      least, Solaris 2.5.1.  We use it in backend/utils/adt/int8.c.
      
      Add a check to configure so that we see if it exists or not, and, if not,
      compile in snprintf.c from backend/port, which was taken from, and falls under
      the same Berkeley license as us, the FreeBSD libc/stdio ...
      0668aa88
  2. 26 Jul, 1998 2 commits
  3. 20 Jul, 1998 1 commit
  4. 19 Jul, 1998 1 commit
    • Bruce Momjian's avatar
      1) Queries using the having clause on base tables should work well · 460b20a4
      Bruce Momjian authored
         now. Here some tested features, (examples included in the patch):
      
      1.1) Subselects in the having clause 1.2) Double nested subselects
      1.3) Subselects used in the where clause and in the having clause
           simultaneously 1.4) Union Selects using having 1.5) Indexes
      on the base relations are used correctly 1.6) Unallowed Queries
      are prevented (e.g. qualifications in the
           having clause that belong to the where clause) 1.7) Insert
      into as select
      
      2) Queries using the having clause on view relations also work
         but there are some restrictions:
      
      2.1) Create View as Select ... Having ...; using base tables in
      the select 2.1.1) The Query rewrite system:
      
      2.1.2) Why are only simple queries allowed against a view from 2.1)
      ? 2.2) Select ... from testview1, testview2, ... having...; 3) Bug
      in ExecMergeJoin ??
      
      
      Regards Stefan
      460b20a4
  5. 15 Jul, 1998 2 commits
  6. 12 Jul, 1998 1 commit
  7. 15 Jun, 1998 1 commit
  8. 13 Jun, 1998 1 commit
    • Bruce Momjian's avatar
      > I needed to do that for the web database that I'm setting up. We · 3f372ee6
      Bruce Momjian authored
      have > 20000 users and each (potentially) needs a separate database
      which is > only accessible to them. Rather than having 20000 lines
      in pg_hba.conf, > I've patched Postgres so that the special token
      "sameuser" in the > database field of pg_hba.conf allows access
      only to the username which > is connecting.
      3f372ee6
  9. 12 May, 1998 1 commit
  10. 09 May, 1998 1 commit
    • Thomas G. Lockhart's avatar
      Implement TIMEZONE_HOUR, TIMEZONE_MINUTE per SQL92 specs. · f4f0e9d6
      Thomas G. Lockhart authored
      Check for and properly ignore FOREIGN KEY column constraints
       (already had fixed same for table constraints).
      Define USER as synonym for CURRENT_USER per SQL92 specs
       (no longer allowed as bare column name, sorry).
      Re-enable HAVING clause but no fixes elsewhere yet.
      Other stuff from today's update of gram.y...
      f4f0e9d6
  11. 04 May, 1998 1 commit
  12. 17 Apr, 1998 1 commit
    • Marc G. Fournier's avatar
      A few minor mods: · 83fd305f
      Marc G. Fournier authored
      	gram.c updated
      	scan.c updated
      	ecpg/Makefile added LDFLAGS
      	configure requires sfio for those systems with it installed...
      83fd305f
  13. 14 Apr, 1998 1 commit
  14. 08 Apr, 1998 1 commit
    • Thomas G. Lockhart's avatar
      Prepare the EXTRACT() clause for supporting TIMEZONE_HOUR · 242b3478
      Thomas G. Lockhart authored
       and TIMEZONE_MINUTE but don't introduce until v6.4.
      Fix SET TIMEZONE LOCAL to pass null pointer
       rather than older "default" string.
      Fix handling of NULL pointer returns from FOREIGN KEY clauses
       which are currently ignored.
      Allow START as a table/column name.
      242b3478
  15. 30 Mar, 1998 1 commit
    • Bruce Momjian's avatar
      I started adding the Having Clause and it works quite fine for · c579ce0f
      Bruce Momjian authored
      sequential scans! (I think it will also work with hash, index, etc
      but I did not check it out! I made some High level changes which
      should work for all access methods, but maybe I'm wrong. Please
      let me know.)
      
      Now it is possible to make queries like:
      
      select s.sname, max(p.pid), min(p.pid) from part p, supplier s
      where s.sid=p.sid group by s.sname having max(pid)=6 and min(pid)=1
      or avg(pid)=4;
      
      Having does not work yet for queries that contain a subselect
      statement in the Having clause, I'll try to fix this in the next
      days.
      
      If there are some bugs, please let me know, I'll start to read the
      mailinglists now!
      
      Now here is the patch against the original 6.3 version (no snapshot!!):
      
      Stefan
      c579ce0f
  16. 18 Mar, 1998 1 commit
    • Thomas G. Lockhart's avatar
      Allow parsing expressions with ") -" (scan.l, scan.c only). · 561aead3
      Thomas G. Lockhart authored
      Make "TABLE" optional in "LOCK TABLE" command
       and "... INTO TABLE..." clause.
      Explicitly parse CREATE SEQUENCE options to allow a negative integer
       as an argument; this is an artifact of unary minus handling in scan.l.
      Add "PASSWORD" as an allowed column identifier.
      These fixes will require a "make clean install" but not a dump/reload.
      561aead3
  17. 27 Feb, 1998 1 commit
    • Marc G. Fournier's avatar
      From: Darren King <darrenk@insightdist.com> · 296a942b
      Marc G. Fournier authored
      This patch will...
      
      1. Remove the "-Wall" option from the ecpg/lib and ecpg/preproc Makefile.
      
      2. Remove the addition of $(SRCDIR)/include and-or $(SRCDIR)/backend from
         ecpg/lib, ecpg/preproc, libpq and utils Makefiles. Already in CFLAGS...
      
      3. Set MK_NO_LORDER and RANLIB in Makefile.aix to avoid a couple of extra
         steps taken care of by the 'ld' command anyways.
      296a942b
  18. 21 Feb, 1998 1 commit
    • Marc G. Fournier's avatar
      First step done, · 7b30490b
      Marc G. Fournier authored
          below  is  the patch to have views to override the permission
          checks for the accessed tables. Now we can do the following:
      
          CREATE VIEW db_user AS SELECT
               usename,
               usesysid,
               usecreatedb,
               usetrace,
               usecatupd,
               '**********'::text as passwd,
               valuntil
              FROM pg_user;
      
          REVOKE ALL ON pg_user FROM public;
          REVOKE ALL ON db_user FROM public;
          GRANT SELECT ON db_user TO public;
      7b30490b
  19. 18 Feb, 1998 1 commit