1. 02 8月, 1998 1 次提交
  2. 26 7月, 1998 3 次提交
    • M
      · 5979d738
      Marc G. Fournier 提交于
      From: t-ishii@sra.co.jp
      
      As Bruce mentioned, this is due to the conflict among changes we made.
      Included patches should fix the problem(I changed all MB to
      MULTIBYTE). Please let me know if you have further problem.
      
      P.S. I did not include pathces to configure and gram.c to save the
      file size(configure.in and gram.y modified).
      5979d738
    • M
      · 74b30a3a
      Marc G. Fournier 提交于
      I missed addding initdb.sh ...
      74b30a3a
    • B
      Fix compile error. Make transaction/work optional on all transaction · 01a651aa
      Bruce Momjian 提交于
      statements.  More cleanups of psql help.  Fix for shift/reduce on
      UNION in subselect.
      01a651aa
  3. 25 7月, 1998 1 次提交
  4. 24 7月, 1998 1 次提交
    • M
      · bf00bbb0
      Marc G. Fournier 提交于
      I really hope that I haven't missed anything in this one...
      
      From: t-ishii@sra.co.jp
      
      Attached are patches to enhance the multi-byte support.  (patches are
      against 7/18 snapshot)
      
      * determine encoding at initdb/createdb rather than compile time
      
      Now initdb/createdb has an option to specify the encoding. Also, I
      modified the syntax of CREATE DATABASE to accept encoding option. See
      README.mb for more details.
      
      For this purpose I have added new column "encoding" to pg_database.
      Also pg_attribute and pg_class are changed to catch up the
      modification to pg_database.  Actually I haved added pg_database_mb.h,
      pg_attribute_mb.h and pg_class_mb.h. These are used only when MB is
      enabled. The reason having separate files is I couldn't find a way to
      use ifdef or whatever in those files. I have to admit it looks
      ugly. No way.
      
      * support for PGCLIENTENCODING when issuing COPY command
      
      commands/copy.c modified.
      
      * support for SQL92 syntax "SET NAMES"
      
      See gram.y.
      
      * support for LATIN2-5
      * add UNICODE regression test case
      * new test suite for MB
      
      New directory test/mb added.
      
      * clean up source files
      
      Basic idea is to have MB's own subdirectory for easier maintenance.
      These are include/mb and backend/utils/mb.
      bf00bbb0
  5. 19 7月, 1998 2 次提交
    • B
      pg_dump -z has gotten rather thoroughly broken in the last couple · 916710fc
      Bruce Momjian 提交于
      of days --- it was emitting stuff like
      	REVOKE ALL on 'table' from PUBLIC; GRANT ALL on "table" to
      	"Public"; neither of which work.  While I was at it I
      cleaned up a few other things:
      
      * \connect commands are issued only in -z mode.  In this way,
      reloading a pg_dump script made without -z will generate a simple
      database wholly owned by the invoking user, rather than a mishmash
      of tables owned by various people but lacking in access rights.
      (Analogy: cp versus cp -p.)
      
      * \connect commands are issued just before COPY FROM stdin commands;
      without this, reloading a database containing non-world-writable
      tables tended to fail because the COPY was not necessarily attempted
      as the table owner.
      
      * Redundant \connect commands are suppressed (each one costs a
      backend launch, so...).
      
      * Man page updated (-z wasn't ever documented).
      
      The first two items were discussed in a pgsql-hackers thread around
      6 May 98 ("An item for the TODO list: pg_dump and multiple table
      owners") but no one had bothered to deal with 'em yet.
      
      			regards, tom lane
      916710fc
    • B
      Add auto-size to screen to \d? commands. Use UNION to show all · 7b2b779a
      Bruce Momjian 提交于
      \d? results in one query. Add \d? field search feature.  Rename MB
      to MULTIBYTE.
      7b2b779a
  6. 12 7月, 1998 1 次提交
  7. 09 7月, 1998 2 次提交
    • M
      · 3a3c1b85
      Marc G. Fournier 提交于
      From: Tom Lane <tgl@sss.pgh.pa.us>
      
      I see someone missed an ancient bit of shell-scripting lore:
      on some older shells, if your script's argument list is empty,
      then "$@" generates an empty-string word rather than no word
      at all.  You need to write ${1+"$@"} to get the latter behavior.
      (Read your shell man page to see exactly how that works,
      but it does the Right Thing on every Bourne shell.)
      
      In particular, pg_dumpall fails when invoked without any switches
      on HPUX 9.*, because pg_dump gets an empty-string argument that it
      thinks is the name of the database to dump.  I expect this bug
      also affects some other OSes, but couldn't tell you just which ones.
      Patch attached.
      3a3c1b85
    • M
      · a0659e3e
      Marc G. Fournier 提交于
      From: Tom Lane <tgl@sss.pgh.pa.us>
      
      Making PQrequestCancel safe to call in a signal handler turned out to be
      much easier than I feared.  So here are the diffs.
      
      Some notes:
        * I modified the postmaster's packet "iodone" callback interface to allow
          the callback routine to return a continue-or-drop-connection return
          code; this was necessary to allow the connection to be closed after
          receiving a Cancel, rather than proceeding to launch a new backend...
          Being a neatnik, I also made the iodone proc have a typechecked
          parameter list.
        * I deleted all code I could find that had to do with OOB.
        * I made some edits to ensure that all signals mentioned in the code
          are referred to symbolically not by numbers ("SIGUSR2" not "2").
          I think Bruce may have already done at least some of the same edits;
          I hope that merging these patches is not too painful.
      a0659e3e
  8. 08 7月, 1998 1 次提交
  9. 20 6月, 1998 1 次提交
  10. 19 6月, 1998 1 次提交
  11. 16 6月, 1998 4 次提交
  12. 15 5月, 1998 1 次提交
  13. 13 5月, 1998 3 次提交
  14. 12 5月, 1998 1 次提交
  15. 07 5月, 1998 2 次提交
    • B
      It seems the regression tests don't cover copy in/out at all, so · 1c2d9cb6
      Bruce Momjian 提交于
      code that I had assumed was working had not been tested.  Naturally,
      it was broken ...
      
      Tom Lane
      1c2d9cb6
    • B
      What I've done: · edbd5139
      Bruce Momjian 提交于
      1. Rewritten libpq to allow asynchronous clients.
      
      2. Implemented client side of cancel protocol in library,
         and patched psql.c to send a cancel request upon SIGINT.  The
         backend doesn't notice it yet :-(
      
      3. Implemented 'Z' protocol message addition and renaming of
         copy in/out start messages.  These are implemented conditionally,
         ie, the client protocol version is checked; so the code should
         still work with 1.0 clients.
      
      4. Revised protocol and libpq sgml documents (don't have an SGML
         compiler, though, so there may be some markup glitches here).
      
      
      What remains to be done:
      
      1. Implement addition of atttypmod field to RowDescriptor messages.
         The client-side code is there but ifdef'd out.  I have no idea
         what to change on the backend side.  The field should be sent
         only if protocol >= 2.0, of course.
      
      2. Implement backend response to cancel requests received as OOB
         messages.  (This prolly need not be conditional on protocol
         version; just do it if you get SIGURG.)
      
      3. Update libpq.3.  (I'm hoping this can be generated mechanically
         from libpq.sgml... if not, will do it by hand.)  Is there any
         other doco to fix?
      
      4. Update non-libpq interfaces as necessary.  I patched libpgtcl
         so that it would compile, but haven't tested it.  Dunno what
         needs to be done with the other interfaces.
      
      Have at it!
      
      Tom Lane
      edbd5139
  16. 04 5月, 1998 1 次提交
  17. 08 4月, 1998 3 次提交
  18. 07 4月, 1998 1 次提交
  19. 06 4月, 1998 7 次提交
    • B
      Makefile cleanup./ · c61846e5
      Bruce Momjian 提交于
      c61846e5
    • B
      Cleanup initdb · 6d708c69
      Bruce Momjian 提交于
      6d708c69
    • B
      Re-introduce $DISTDIR. · 5523beb9
      Bruce Momjian 提交于
      5523beb9
    • B
      Move initdb.sh to initdb · 47364f31
      Bruce Momjian 提交于
      47364f31
    • B
      Hi, · 1e801a8f
      Bruce Momjian 提交于
      Attached you'll find a (big) patch that fixes make dep and make
      depend in all Makefiles where I found it to be appropriate.
      
      It also removes the dependency in Makefile.global for NAMEDATALEN
      and OIDNAMELEN by making backend/catalog/genbki.sh and bin/initdb/initdb.sh
      a little smarter.
      
      This no longer requires initdb.sh that is turned into initdb with
      a sed script when installing Postgres, hence initdb.sh should be
      renamed to initdb (after the patch has been applied :-) )
      
      This patch is against the 6.3 sources, as it took a while to
      complete.
      
      Please review and apply,
      
      Cheers,
      
      Jeroen van Vianen
      1e801a8f
    • B
      Remove DISTDIR. · 2dfee934
      Bruce Momjian 提交于
      2dfee934
    • B
      this patch solve 2 problemes : · fdb37f07
      Bruce Momjian 提交于
      probleme number 1 :
      
      - configure can find the library readline , but don't
        find the header file . so in this case we don't use lib readline
        .
      
      probleme number 2 :
      
      - when you have postgres 6.2.1 and readline installed
        with the same prefix( and generally all your software ) .  you
        can compile the version 6.3 .  I use this prefix , when configure
        ask me for "Additional directories to search for include files"
        .
      
        ( because there a conflict in the header when you
          compile psql.c ) In this case, you must permut the sequence of
        directive -I .
      
      Erwan MAS
      fdb37f07
  20. 31 3月, 1998 2 次提交
    • B
      documentation for HAVING, clean up UNION comment. · 01ecb2e3
      Bruce Momjian 提交于
      01ecb2e3
    • B
      There's a patch attached to fix gcc 2.8.x warnings, except for the · 9a0dd4fb
      Bruce Momjian 提交于
      yyerror ones from bison. It also includes a few 'enhancements' to
      the C programming style (which are, of course, personal).
      
      The other patch removes the compilation of backend/lib/qsort.c, as
      qsort() is a standard function in stdlib.h and can be used any
      where else (and it is). It was only used in
      backend/optimizer/geqo/geqo_pool.c, backend/optimizer/path/predmig.c,
      and backend/storage/page/bufpage.c
      
      > > Some or all of these changes might not be appropriate for v6.3,
      since we > > are in beta testing and since they do not affect the
      current functionality.  > > For those cases, how about submitting
      patches based on the final v6.3 > > release?
      
      There's more to come. Please review these patches. I ran the
      regression tests and they only failed where this was expected
      (random, geo, etc).
      
      Cheers,
      
      Jeroen
      9a0dd4fb
  21. 30 3月, 1998 1 次提交