Commit Graph

3390 Commits

Author SHA1 Message Date
Bruce Momjian
6ef58461ff Add missing includes. 1998-05-07 16:17:18 +00:00
Bruce Momjian
9527ce3efe Add missing file from Tom Lane. 1998-05-07 14:52:52 +00:00
Bruce Momjian
1c2d9cb637 It seems the regression tests don't cover copy in/out at all, so
code that I had assumed was working had not been tested.  Naturally,
it was broken ...

Tom Lane
1998-05-06 23:53:48 +00:00
Bruce Momjian
edbd51395c What I've done:
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
1998-05-06 23:51:16 +00:00
Bruce Momjian
2e12331d42 Remove extra paren in __alpha so it compiles. 1998-05-06 23:25:19 +00:00
Marc G. Fournier
6bccf64d7b From: Michael Meskes <meskes@topsystem.de>
Tue Apr 28 14:48:41 CEST 1998

      - Put operator "->" back into parser. Note that :foo->bar means the
        C term, but :foo ->bar means the operator "->".

Tue Apr 28 15:49:07 CEST 1998

      - Added exec sql disconnect command.
      - Allow varchar in C to be written in uppercase too.
      - Added whenever option "do break;"

Wed Apr 29 09:17:53 CEST 1998

      - Corrected parsing of C comments.
      - Also allow C++ style comments.
      - Make sure not found is only checked after commands that could
          return it.
      - Added error codes, see ecpgerror.h for details.
      - Added "exec sql <TransactionStmt> release" as disconnect statement
        for compatibility issues.

Thu Apr 30 10:42:10 CEST 1998

      - Added a -t option to disable automatic transaction start.
      - Added sqlerrd[] to sqlca struct.
      - Give back number of tuples affect in sqlca.sqlerrd[2].

Thu Apr 30 13:36:02 CEST 1998

      - Make the return code different in case of different errors.

Wed May  6 11:42:48 CEST 1998

      - Free memory if possible
      - Some bugfixes for bugs I found while changing the memory
          allocation code
      - Now able to fill complete array with one call (see test1.pgc for
          an example)
      - Set version to 2.3.0
      - Set library version to 2.1
1998-05-06 13:03:47 +00:00
Marc G. Fournier
f9322c66d3 Missed the __alpha__ to __alpha change...
From: David Gould <dg@illustra.com>
1998-05-04 23:49:17 +00:00
Marc G. Fournier
c73e186948 Okay...this should fix the s_lock() patches from David to what he
currently has...

From: David Gould <dg@illustra.com>
1998-05-04 16:58:59 +00:00
Marc G. Fournier
1d36bdcfa6 Major screwed up s_lock patches...need to be fixed... 1998-05-04 15:45:03 +00:00
Bruce Momjian
f8b4a25fd7 return to normal values 1998-05-04 02:09:33 +00:00
Bruce Momjian
29c20d498d Fix for missing parens with \g causing psql to get completely
confused.
1998-05-04 02:02:09 +00:00
Bruce Momjian
dfb731c273 test 1998-05-01 04:33:58 +00:00
Bruce Momjian
c6e484a453 test 1998-05-01 04:31:02 +00:00
Bruce Momjian
fc1000f9bb test 1998-05-01 04:28:03 +00:00
Bruce Momjian
745c642597 test 1998-05-01 04:26:52 +00:00
Bruce Momjian
08aa9d304b test 1998-05-01 04:22:24 +00:00
Bruce Momjian
f97b679c82 test 1998-05-01 04:19:55 +00:00
Bruce Momjian
0540a19f12 test 1998-05-01 04:18:15 +00:00
Bruce Momjian
404c73bff9 test 1998-05-01 04:15:50 +00:00
Bruce Momjian
a20df83df9 test 1998-04-30 14:54:27 +00:00
Bruce Momjian
65b5eb5add No reason to show flags in root error message. 1998-04-30 14:25:13 +00:00
Marc G. Fournier
51a1741cfb From: Jeroen van Vianen <jeroenv@design.nl>
Attached patch will add a version() function to Postges, e.g.

template1=> select version();
version
------------------------------------------------------------
PostgreSQL 6.3.2 on i586-pc-linux-gnu, compiled by gcc 2.8.1
(1 row)
1998-04-29 12:41:29 +00:00
Marc G. Fournier
bab9818c4b Missed adding two files from the MultiByte patch... 1998-04-29 12:26:22 +00:00
Marc G. Fournier
a9ed49d5b5 From: Oliver Elphick <olly@lfix.co.uk>
If PQfn() receives NOTICEs from the backend, it fails because there is no
provision to deal with them.

This patch (supplied by Anders Hammarquist <iko@netg.se> to me as Debian
maintainer of postgresql) cures the problem:
1998-04-29 02:04:01 +00:00
Bruce Momjian
23c0471007 test 1998-04-29 01:47:40 +00:00
Bruce Momjian
ced3333594 test 1998-04-29 01:29:31 +00:00
Bruce Momjian
fcfd60fe73 test 1998-04-29 01:21:08 +00:00
Bruce Momjian
c1c5b39728 test 1998-04-29 00:56:13 +00:00
Bruce Momjian
e8cfd4376d test 1998-04-29 00:28:56 +00:00
Bruce Momjian
4ec54e7aee test 1998-04-29 00:25:42 +00:00
Bruce Momjian
7a6111ee4b test 1998-04-29 00:24:30 +00:00
Bruce Momjian
ba77aa5249 test 1998-04-29 00:13:10 +00:00
Bruce Momjian
227bbcc603 test 1998-04-29 00:10:35 +00:00
Bruce Momjian
c2cc963d18 test 1998-04-28 21:51:34 +00:00
Bruce Momjian
8a9b784bfa test 1998-04-28 19:50:22 +00:00
Bruce Momjian
89f534e049 test 1998-04-28 19:24:08 +00:00
Bruce Momjian
62eb0e17dc test 1998-04-28 19:20:22 +00:00
Bruce Momjian
a987f54955 test 1998-04-28 18:59:46 +00:00
Bruce Momjian
d256ca4222 Add cursor name to man page. 1998-04-28 18:39:11 +00:00
Thomas G. Lockhart
446a9936ab Include full tools installation instructions from Tom Helbekkmo.
Include small section on authoring and Makefile configuration.
Rearrange section order.
1998-04-28 14:57:48 +00:00
Thomas G. Lockhart
f7fa77e60c Include info on setting compiler options on the command line
when building executables.
1998-04-28 14:55:45 +00:00
Thomas G. Lockhart
db602e80ad Fix some typos. 1998-04-28 14:54:24 +00:00
Thomas G. Lockhart
329949d1fe Include e-mail exchange between Jan and Andreas to start info on rules. 1998-04-28 14:52:46 +00:00
Bruce Momjian
77bc683869 Make Linux startup support sh and csh. 1998-04-28 03:25:33 +00:00
Marc G. Fournier
f554af0a9f From: t-ishii@sra.co.jp
Hi, here are patches I promised (against 6.3.2):

* character_length(), position(), substring() are now aware of
          multi-byte characters
* add octet_length()
* add --with-mb option to configure
* new regression tests for EUC_KR
  (contributed by "Soonmyung. Hong" <hong@lunaris.hanmesoft.co.kr>)
* add some test cases to the EUC_JP regression test
* fix problem in regress/regress.sh in case of System V
* fix toupper(), tolower() to handle 8bit chars

note that:

o  patches for both configure.in and configure are
included. maybe the one for configure is not necessary.

o pg_proc.h was modified to add octet_length(). I used OIDs
(1374-1379) for that. Please let me know if these numbers are not
appropriate.
1998-04-27 17:10:50 +00:00
Marc G. Fournier
2cbcf46102 From: Jun Kuwamura <juk@rccm.co.jp>
I do not know about these contributions well as I only made the binaries
to contribute to a Japanese Linux package.(I did not test them.)  But I
try to make some brief introduction about the contrib directory with my
poor English.  Here is a draft of README about contrib directory:
1998-04-27 16:59:12 +00:00
Marc G. Fournier
5e202d8586 show the index used in an explain
From: Zeugswetter Andreas SARZ <Andreas.Zeugswetter@telecom.at>
1998-04-27 16:57:09 +00:00
Marc G. Fournier
6d817475b2 From: Tom Lane <tgl@sss.pgh.pa.us>
HP-UX (all versions) requires shared libraries to have execute
permission, and really needs them to be exactly mode 555 for
performance reasons.  The standard configure/install procedure
installs libpq.sl as mode 644, which DOES NOT WORK.

The attached patch modifies the makefiles to distinguish
INSTL_LIB_OPTS (install mode for ordinary libraries) from
INSTL_SHLIB_OPTS (mode for shared libs), and adds a test
to configure to set INSTL_SHLIB_OPTS="-m 555" when on HP-UX.
1998-04-27 14:55:46 +00:00
Marc G. Fournier
1af6b56427 From: Ryan Kirkpatrick <rkirkpat@nag.cs.colorado.edu>
Ok, I have finally gotten all of the defines for Dec/Alpha and
Linux/Alpha sorted out as Marc asked. There is no longer any need for
'-Dalpha' or '-Dlinuxalpha' in either the Dec/Alpha or the Linux/Alpha
template files (./src/template/{alpha,linuxalpha}). I have replaced every
instance of 'alpha' or '__alpha__' with '__alpha', as that appears to be
the common symbol between C compilers on both operating systems (RH4.2 &
DecUnix 4.0b) for alpha.
1998-04-27 14:46:51 +00:00
Marc G. Fournier
718430ea40 From: Michael Meskes <meskes@topsystem.de>
And the next update. Now you can use only parts of a struct like this:

exec sql select a into :struct.string from foo;
1998-04-27 14:35:58 +00:00