1. 25 Mar, 1997 16 commits
    • Marc G. Fournier's avatar
      719a413f
    • Marc G. Fournier's avatar
      another one missed · 0ccaaac1
      Marc G. Fournier authored
      0ccaaac1
    • Marc G. Fournier's avatar
      MIssed adding a file to the repository · 884d70ed
      Marc G. Fournier authored
      884d70ed
    • Marc G. Fournier's avatar
      From: "D'Arcy J.M. Cain" <darcy@druid.net> · 07038148
      Marc G. Fournier authored
      Subject: [HACKERS] backend/utils/adt/timestamp.c
      
      Back to this timezone stuff.  The struct tm has a field (tm_gmtoff) which
      is the offset from UTC (GMT is archaic BTW) in seconds.  Is this the
      value you are looking for when you use timezone?  Note that this applies
      to NetBSD but it does not appear to be in either ANSI C or POSIX.  This
      looks like one of those things that is just going to have to be hand
      coded for each platform.
      
      Why not just store the values in UTC and use localtime instead of
      gmtime when retrieving the value?
      
      Also, you assume the time is returned as a 4 byte integer.  In fact,
      there is not even any requirement that time be an integral value.  You
      should use time_t here.
      
      The input function seems unduly restrictive.  Somewhere in the sources
      there is an input function that allows words for months.  Can't we do
      the same here?
      
      There is a standard function, difftime, for subtracting two times.  It
      deals with cases where time_t is not integral.  There is, however, a
      small performance hit since it returns a double and I don't believe
      there is any system currently which uses anything but an integral for
      time_t.  Still, this is technically the correct and portable thing to do.
      
      The returns from the various comparisons should probably be a bool.
      07038148
    • Marc G. Fournier's avatar
      Various patches for shared libraries under i386-solaris by: · c2e73db8
      Marc G. Fournier authored
      Christoph Kaesling <ck@dog.pfalz.sub.de>
      c2e73db8
    • Marc G. Fournier's avatar
      Here's two more diffs... · 6304e2c2
      Marc G. Fournier authored
      The first fixes a warning from gcc about the assignment within the condition.
      The extra set of parens should not make a difference, but with -Werror, they
      are necessary.
      
      The second fixes an "ln -s" invocation that assumes the current directory is
      implicitly the target if not specified.  Not true in all cases, and again, it
      should not make a difference except to those implementation that it does.
      
      From: "Michael P. Snyder" <msnyder@hawkeye.huntersmoon.com>
      6304e2c2
    • Marc G. Fournier's avatar
      Rather than make this a Linux test, we should just test for the existence · ea2fa32e
      Marc G. Fournier authored
      of endian.h.  I figure that if it exists it's pretty sure that it has
      the byte order information and we may catch some other ports without
      any further testing.
      
      From: "D'Arcy J.M. Cain" <darcy@druid.net>
      ea2fa32e
    • Marc G. Fournier's avatar
      Use $(LD_ADD) from Makefile.global instead of $(LDADD), which doesn't exist... · fcd65952
      Marc G. Fournier authored
      Pointed out indirectly by D'Arcy
      fcd65952
    • Marc G. Fournier's avatar
      From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov> · dfe04753
      Marc G. Fournier authored
      Subject: [HACKERS] More patches for date/time
      
      I have accumulated several patches to add functionality to the datetime
      and timespan data types as well as to fix reported porting bugs on non-BSD
      machines. These patches are:
      
      dt.c.patch              - add datetime_part(), fix bugs
      dt.h.patch              - add quarter and timezone support, add prototypes
      globals.c.patch         - add time and timezone variables
      miscadmin.h.patch       - add time and timezone variables
      nabstime.c.patch        - add datetime conversion routine
      nabstime.h.patch        - add prototypes
      pg_operator.h.patch     - add datetime operators, clean up formatting
      pg_proc.h.patch         - add datetime functions, reassign conflicting date OIDs
      pg_type.h.patch         - add datetime and timespan data types
      
      The dt.c and pg_proc.h patches are fairly large; the latter mostly because I tried
      to get some columns for existing entries to line up.
      dfe04753
    • Marc G. Fournier's avatar
      MOre univel port patches/files from: · d2a386d6
      Marc G. Fournier authored
      "Michael P. Snyder" <msnyder@hawkeye.huntersmoon.com>
      d2a386d6
    • Marc G. Fournier's avatar
    • Vadim B. Mikheev's avatar
      1a63f48b
    • Marc G. Fournier's avatar
      - Renamed the variable names to something shorter, and I hope · ef56e51c
      Marc G. Fournier authored
          nicer. Also, I grabbed my copy of the Informix manual, and
          added a couple of variables that make sense (formats for
          money, time, a language setting, a timezone).
      
        - New functions SetPGVariable() and GetPGVariable() in tcop/*.
          These don't actually do anything for the moment, but should
          be enough to implement the SET var_name TO var_val in the
          parser?
      
          SetPGVariable() expects just two strings, the var_name and
          the var_value from above, and is expected to do the right thing.
          Returns TRUE if  everything okay.
      
      
      From: "Martin J. Laubach" <mjl@wwx.vip.at>
      ef56e51c
    • Marc G. Fournier's avatar
      Add in alpha port · e16b43e2
      Marc G. Fournier authored
      e16b43e2
    • Marc G. Fournier's avatar
      I don't know whether this breaks what the previous person tried to · 424e4332
      Marc G. Fournier authored
      fix, but figure I"ll know soon enough, eh?
      
      Patch submitted by Dan McGuirk
      424e4332
    • Marc G. Fournier's avatar
      Needs USE_POSIX_SIGNALS · 7fae4365
      Marc G. Fournier authored
      Pointed out by Dan McGuirk
      7fae4365
  2. 24 Mar, 1997 4 commits
  3. 21 Mar, 1997 2 commits
  4. 20 Mar, 1997 4 commits
  5. 19 Mar, 1997 8 commits
  6. 18 Mar, 1997 6 commits
    • Marc G. Fournier's avatar
      From: Jun Kuwamura <juk@rccm.co.jp> · 678cd5c6
      Marc G. Fournier authored
      Subject: [HACKERS] auth.c for kerberos.
      
        I made pgsql with eBones(international version of Kerberos4).  The
      following modification was needed.  And I added read permition for
      group to srvtab instead of running postmaster as root.
      678cd5c6
    • Marc G. Fournier's avatar
      Replace strsep() by strtok() · 3bc07104
      Marc G. Fournier authored
      By: Dan McGuirk <mcguirk@indirect.com>
      3bc07104
    • Marc G. Fournier's avatar
      This is an attempt to get rid of some cruft... · d611b07d
      Marc G. Fournier authored
      According to man page under FreeBSD for sys_errlist[], strerror() should be
      used instead...not sure if this will break other systems, so only changing
      two files for now, and we'll see what "errors" it turns up
      d611b07d
    • Marc G. Fournier's avatar
    • Marc G. Fournier's avatar
      - Move most of the I/O in both libpq and the backend to a set · 812a6c2b
      Marc G. Fournier authored
          of common routines in pqcomprim.c (pq communication primitives).
          Not all adapted to it yet, but it's a start.
      
        - Rewritten some of those routines, to write/read bigger chunks of
          data, precomputing stuff in buffers instead of sending out byte
          by byte.
      
        - As a consequence, I need to know the endianness of the machine.
          Currently I rely on getting it from machine/endian.h, but this
          may not be available everywhere? (Who the hell thought it was
          a good idea to pass integers to the backend the other way around
          than the normal network byte order? *argl*)
      
        - Libpq looks in the environment for magic variables, and upon
          establishing a connection to the backend, sends it queries
          of the form "SET var_name TO 'var_value'". This needs a change
          in the backend parser (Mr. Parser, are you there? :)
      
        - Currently it looks for two Env-Vars, namely PG_DATEFORMAT
          and PG_FLOATFORMAT. What else makes sense? PG_TIMEFORMAT?
          PG_TIMEZONE?
      
      From: "Martin J. Laubach" <mjl@wwx.vip.at>
      812a6c2b
    • Marc G. Fournier's avatar
      d1463050