Commit 690235fc authored by Bruce Momjian's avatar Bruce Momjian

Update INSTALL, etc. for release 6.4. Update pgaccess to 0.88.

parent c9ac0ceb
PostgreSQL 6.4 Tue Sep 1 21:18:17 EDT 1998
=========================================================
A dump/restore is required for those wishing to migrate data from
previous releases of PostgreSQL.
Bug Fixes
---------
Fix for a tiny memory leak in PQsetdb/PQfinish(Bryan)
Remove char2-16 data types, use char/varchar(Darren)
Pqfn not handles a NOTICE message(Anders)
Short-term locks now retry locking at random times(David)
Fix up "ISO-style" timespan decoding and encoding(Thomas)
Fix problem with table drop after rollback of transaction(Vadim)
Change error message and remove non-functional update message(Vadim)
Fix for COPY array checking
Fix for SELECT 1 UNION SELECT NULL
Fix for buffer leaks in large object calls(Pascal)
Change owner from oid to int4 type(Bruce)
Fix a bug in the oracle compatibility functions btrim() ltrim() and rtrim()
Fix for usernames longer than eight characters(Tom)
Fix for shared invalidation cache overflow(Massimo)
Prevent file descriptor leaks in failed COPY's(Bruce)
Enhancements
------------
Upgrade ECPG to 2.0, see src/interfaces/ecpc/ChangeLog(Michael)
Show the index used in an explain(Zeugswetter)
Multi-byte awareness of many data data types and functions(Tatsuo)
New configure --with-mb option(Tatsuo)
New initdb --pgencoding option(Tatsuo)
New createdb -E multibyte option(Tatsuo)
Select version(); now returns PostgreSQL version(Jeroen)
Libpq now allows asynchronous clients(Tom)
Allow cancel from client of backend query(Tom)
Psql now cancels query with Control-C(Tom)
Define "tz_hour" and "tz_minute" arguments to date_part()(Thomas)
Add routines to convert between varchar and bpchar(Thomas)
Add routines to allow sizing of varchar and bpchar into target columns(Thomas)
Add bit flags to support timezonehour and minute in data retrieval(Thomas)
Allow more variations on valid floating point numbers (e.g. ".1", "1e6")(Thomas)
Fixes for unary minus parsing with leading spaces(Thomas)
Implement TIMEZONE_HOUR, TIMEZONE_MINUTE per SQL92 specs(Thomas)
Check for and properly ignore FOREIGN KEY column constraints(Thomas)
Define USER as synonym for CURRENT_USER per SQL92 specs(Thomas)
Enable HAVING clause but no fixes elsewhere yet.
Make "char" type a synonym for "char(1)" (actually implemented as bpchar)(Thomas)
Save string type if specified for DEFAULT clause handling(Thomas)
Coerce operations involving different data types(Thomas)
Allow some index use for columns of different types(Thomas)
Add capabilities for automatic type conversion(Thomas)
Cleanups for large objects, so file is truncated on open(Peter)
Readline cleanups(Tom)
Allow psql \f \ to make spaces as delimiter(Bruce)
Pass pg_attribute.atttypmod to the frontend for column field lengths(Tom,Bruce)
Msql compatibility library in /contrib(Aldrin)
Remove the requirement that ORDER/GROUP BY clause identifiers be
included in the target list(David)
Convert columns to match columns in UNION clauses(Thomas)
Remove fork()/exec() and only do fork()(Bruce)
Jdbc cleanups(Peter)
Show backend status on ps command line(only works on some platforms)(Bruce)
Pg_hba.conf now has a sameuser option in the database field
Make lo_unlink take oid param, not int4
New DISABLE_COMPLEX_MACRO for compilers that can't handle our macros(Bruce)
Libpgtcl now gets async notifies from libpq(Tom)
New locale patch, see docs/README/locale(Oleg)
Fix for pg_dump so CONSTRAINT and CHECK syntax is correct(ccb)
New contrib/lo code for large object orphan removal(Peter)
New psql command "SET CLIENT_ENCODING TO 'encoding'" for multi-bytes
feature, see /doc/README.mb(Tatsuo)
/contrib/noupdate code to revoke update permission on a column
Libpq can now be compiled on win32(Magnus)
Add PQsetdbLogin() in libpq
Two styles we agreed upon for database descriptors(Thomas)
New 8-byte integer type, checked by configure for OS support(Thomas)
Surround table and column names with double-quotes(Thomas) in generated
sql code to preserve case (SQL92 syntax)(Thomas)
New libpqrequestCancel(Tom)
PQreset() now works with passwords(Tom)
Handle case of GROUP BY target list column number out of range(David)
Allow UNION in subselects
Add auto-size to screen to \d? commands(Bruce)
Use UNION to show all \d? results in one query(Bruce)
Add \d? field search feature(Bruce)
Pg_dump issues fewer \connect requests(Tom)
Document pg_dump -z flag in manual page(Tom)
Add HAVING clause with full support for subselects and unions(Stephan)
Full text indexing routines in contrib/fulltextindex(Marteen)
Transaction ids now stored in shared memory(Vadim)
New PGCLIENTENCODING when issuing COPY command(Tatsuo)
Support for SQL92 syntax "SET NAMES"(Tatsuo)
Support for LATIN2-5(Tatsuo)
Add UNICODE regression test case(Tatsuo)
Lock manager cleanup, new locking modes for LLL(Vadim)
Allow index use with OR clauses(Bruce)
Allows "SELECT NULL ORDER BY 1;"
Explain VERBOSE prints the plan, and now pretty-prints the plan to
the postmaster log file(Bruce)
Add Indices display to \d command(Bruce)
Allow GROUP BY on functions(David)
New pg_class.relkind for large objects(Bruce)
New way to send libpq NOTICE messages to a different location(Tom)
New \w write command to psql(Bruce)
New /contrib/findoidjoins scans oid columns to find join relationships(Bruce)
Allow binary-compatible indices to be considered when checking for valid
indices for restriction clauses containing a constant(Thomas)
New ISBN/ISSN code in /contrib/isbn_issn
Allow NOT LIKE, IN, NOT IN, BETWEEN, and NOT BETWEEN constraint(Thomas)
New rewrite system fixes many problems with rules and views(Jan)
* Rules on relations work
* Event qualifications on insert/update/delete work
* New OLD variable to reference CURRENT, CURRENT will be remove in future
* Update rules can reference NEW and OLD in rule qualifications/actions
* Insert/update/delete rules on views work
* Multiple rule actions are now supported, surrounded by parentheses
* Regular users can create views/rules on tables they have RULE permits
* Rules and views inherit the permissions on the creator
* No rules at the column level
* No UPDATE NEW/OLD rules
* New pg_rule and pg_view system views
* Only a single action on SELECT rules
* Total rewrite overhaul, perhaps for 6.5
System indexes are now multi-key(Bruce)
Oidint2, oidint4, and oidname types are removed(Bruce)
Use system cache for more system table lookups(Bruce)
New backend programming language PL/pgSQL in backend/pl(Jan)
New SERIAL data type, auto-creates sequence/index(Thomas)
Enable assert checking without a recompile(Massimo)
User lock enhancements(Massimo)
New setval() command to set sequence value(Massimo)
Auto-remove unix socket file on startup if no postmaster running(Massimo)
Conditional trace package(Massimo)
New UNLISTEN command(Massimo)
Psql now compiles under win32 using win32.mak(Magnus)
Lo_read no longer stores trailing NULL(Bruce)
Identifiers are now truncated to 31 characters internally(Bruce)
Source Tree Changes
-------------------
/contrib cleanup(Jun)
Inline some small functions called for every row(Bruce)
Alpha/linux fixes
Hp/UX cleanups(Tom)
Multi-byte regression tests(Soonmyung.)
Remove --disabled options from configure
Define PGDOC to use POSTGRESDIR by default
Make regression optional
Remove extra braces code to pgindent(Bruce)
Add bsdi shared library support(Bruce)
New --without-CXX support configure option(Brook)
New FAQ_CVS
Update backend flowchart in tools/backend(Bruce)
Change atttypmod from int16 to int32(Bruce, Tom)
Getrusage() fix for platforms that do not have it(Tom)
Add PGUSER to libpq man page
Ns32k platform fixes(Phil Nelson)
Sco 7/UnixWare 2.x fixes(Billy,others)
Sparc/Solaris 2.5 fixes(Ryan)
Pgbuiltin.3 is obsolete, move to doc files(Thomas)
Even more documention(Thomas)
PostgreSQL 6.3.2 Tue Apr 7 16:53:16 EDT 1998 PostgreSQL 6.3.2 Tue Apr 7 16:53:16 EDT 1998
========================================================= =========================================================
......
...@@ -2,7 +2,7 @@ POSTGRESQL INSTALLATION INSTRUCTIONS ...@@ -2,7 +2,7 @@ POSTGRESQL INSTALLATION INSTRUCTIONS
Copyright (c) 1997 Regents of the University of California Copyright (c) 1997 Regents of the University of California
This is file /usr/src/pgsql/INSTALL. It contains notes on how to install This is file /usr/src/pgsql/INSTALL. It contains notes on how to install
PostgreSQL v6.3.2. Up to date information on PostgreSQL may be found at PostgreSQL v6.4. Up to date information on PostgreSQL may be found at
http://www.postgresql.org. http://www.postgresql.org.
PostgreSQL is an RDBMS database server. It is not completely ANSI SQL PostgreSQL is an RDBMS database server. It is not completely ANSI SQL
...@@ -68,14 +68,11 @@ You should have at least 8 MB of memory and at least 45 MB of disk space ...@@ -68,14 +68,11 @@ You should have at least 8 MB of memory and at least 45 MB of disk space
to hold the source, binaries, and user databases. After installation to hold the source, binaries, and user databases. After installation
you may reduce this to about 3 Mbytes plus space for user databases. you may reduce this to about 3 Mbytes plus space for user databases.
To those upgrading from PostgreSQL 6.3: To those upgrading from PostgreSQL 6.3.*:
--------------------------------------- ----------------------------------------
A dump/restore is NOT required for those running 6.3. A
'make distclean', 'make', and 'make install' is all that is required.
This last step should be performed while the postmaster is not running.
You should re-link any custom applications that use PostgreSQL libraries.
A dump/restore is required for those running 6.3.*. pg_dumpall can help
with this task.
To those doing a fresh install or upgrading from previous releases of To those doing a fresh install or upgrading from previous releases of
PostgreSQL: PostgreSQL:
...@@ -118,7 +115,7 @@ PostgreSQL: ...@@ -118,7 +115,7 @@ PostgreSQL:
To check for disk space, use command "df -k". To check for disk space, use command "df -k".
4) Ftp file ftp://ftp.postgresql.org/pub/postgresql-6.3.2.tar.gz from the 4) Ftp file ftp://ftp.postgresql.org/pub/postgresql-6.4.tar.gz from the
Internet. Store it in your home directory. Internet. Store it in your home directory.
5) Some platforms use flex. If your system uses flex then make sure 5) Some platforms use flex. If your system uses flex then make sure
...@@ -160,7 +157,7 @@ PostgreSQL: ...@@ -160,7 +157,7 @@ PostgreSQL:
step. Type (with the gunzip line and the following line typed as one step. Type (with the gunzip line and the following line typed as one
line): line):
cd cd
gunzip -c postgresql-6.3.2.tar.gz | gunzip -c postgresql-6.4.tar.gz |
tar xvf - src/bin/pg_dump/pg_dumpall tar xvf - src/bin/pg_dump/pg_dumpall
chmod a+x src/bin/pg_dump/pg_dumpall chmod a+x src/bin/pg_dump/pg_dumpall
src/bin/pg_dump/pg_dumpall > db.out src/bin/pg_dump/pg_dumpall > db.out
...@@ -226,7 +223,7 @@ PostgreSQL: ...@@ -226,7 +223,7 @@ PostgreSQL:
10) Unzip and untar the new source file. Type 10) Unzip and untar the new source file. Type
cd /usr/src/pgsql cd /usr/src/pgsql
gunzip -c ~/postgresql-6.3.2.tar.gz | tar xvf - gunzip -c ~/postgresql-6.4.tar.gz | tar xvf -
11) Configure the source code for your system. It is this step at which 11) Configure the source code for your system. It is this step at which
you can specify your actual source path and installation paths for you can specify your actual source path and installation paths for
...@@ -433,7 +430,7 @@ PostgreSQL: ...@@ -433,7 +430,7 @@ PostgreSQL:
PostgreSQL. PostgreSQL.
For a i686/Linux-ELF platform, no tests failed since this is the For a i686/Linux-ELF platform, no tests failed since this is the
v6.3.2 regression testing reference platform. v6.4 regression testing reference platform.
For the SPARC/Linux-ELF platform, using the 970525 beta version of For the SPARC/Linux-ELF platform, using the 970525 beta version of
PostgreSQL v6.2 the following tests "failed": PostgreSQL v6.2 the following tests "failed":
...@@ -553,7 +550,7 @@ PostgreSQL: ...@@ -553,7 +550,7 @@ PostgreSQL:
rm -rf /usr/local/pgsql_6_0 rm -rf /usr/local/pgsql_6_0
# Also delete old database directory tree if it is not in # Also delete old database directory tree if it is not in
# /usr/local/pgsql_6_0/data # /usr/local/pgsql_6_0/data
rm ~/postgresql-6.3.2.tar.gz rm ~/postgresql-6.4.tar.gz
26) You will probably want to print out the documentation. Here is how 26) You will probably want to print out the documentation. Here is how
you might do it if you have Ghostscript on your system and are you might do it if you have Ghostscript on your system and are
...@@ -580,7 +577,7 @@ PostgreSQL: ...@@ -580,7 +577,7 @@ PostgreSQL:
supported platforms. We therefore ask you to let us know if you did supported platforms. We therefore ask you to let us know if you did
or did not get PostgreSQL to work on you system. Please send a or did not get PostgreSQL to work on you system. Please send a
mail message to pgsql-ports@postgresql.org telling us the following: mail message to pgsql-ports@postgresql.org telling us the following:
- The version of PostgreSQL (6.3.2, 6.2.1, beta 970703, etc.). - The version of PostgreSQL (6.4, 6.3.2, beta 970703, etc.).
- Your operating system (i.e. RedHat v4.0 Linux v2.0.26). - Your operating system (i.e. RedHat v4.0 Linux v2.0.26).
- Your hardware (SPARC, i486, etc.). - Your hardware (SPARC, i486, etc.).
- Did you compile, install and run the regression tests cleanly? - Did you compile, install and run the regression tests cleanly?
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
PostgreSQL Data Base Management System (formerly known as Postgres, then PostgreSQL Data Base Management System (formerly known as Postgres, then
as Postgres95). as Postgres95).
This directory contains the version 6.3.2 release of the PostgreSQL This directory contains the version 6.4 release of the PostgreSQL
database server. The server is not ANSI SQL compliant, but it gets database server. The server is not ANSI SQL compliant, but it gets
closer with every release. After you unzip and untar the distribution closer with every release. After you unzip and untar the distribution
file, look at file INSTALL for the installation notes and file HISTORY file, look at file INSTALL for the installation notes and file HISTORY
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -27,9 +27,9 @@ System Configuration ...@@ -27,9 +27,9 @@ System Configuration
Operating System (example: Linux 2.0.26 ELF) : Operating System (example: Linux 2.0.26 ELF) :
PostgreSQL version (example: PostgreSQL-6.3.2) : PostgreSQL-6.3.2 PostgreSQL version (example: PostgreSQL-6.4) : PostgreSQL-6.4
Compiler used (example: gcc 2.7.2) : Compiler used (example: gcc 2.8.0) :
Please enter a FULL description of your problem: Please enter a FULL description of your problem:
......
(1998-05-31) (1998-09-01)
PostgreSQL has a Web site at http://www.postgresql.org/ which carries details PostgreSQL has a Web site at http://www.postgresql.org/ which carries details
on the latest release, upcoming features, and other information to make your on the latest release, upcoming features, and other information to make your
work or play with PostgreSQL more productive. work or play with PostgreSQL more productive.
......
...@@ -22,15 +22,15 @@ PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. ...@@ -22,15 +22,15 @@ PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
PGACCESS 0.86 29 March 1998 PGACCESS 0.88 7 June 1998
================================ ================================
I dedicate this program to my little 4 year daughter Ana-Maria and my wife I dedicate this program to my little daughters Ana-Maria and Emilia and to my
for their understanding. I hope they will forgive me for spending so many wife for their understanding. I hope they will forgive me for spending so many
time far from them. time far from them.
1.Why PGACCESS ? 1.Why PgAccess ?
First of all because PostgreSQL lacks a graphical interface where you First of all because PostgreSQL lacks a graphical interface where you
can manage your tables, edit them, define queries, sequences and can manage your tables, edit them, define queries, sequences and
...@@ -77,7 +77,7 @@ pgaccess.tcl file. ...@@ -77,7 +77,7 @@ pgaccess.tcl file.
4.What does it now ? 4.What does it now ?
- Opens any database on a specified host at the specified port. - Opens any database on a specified host at the specified port, username and password
- Perform vacuum command. - Perform vacuum command.
- Saves preferences in ~/pgaccessrc file - Saves preferences in ~/pgaccessrc file
......
...@@ -13,12 +13,13 @@ PgAccess - a database management tool for <A HREF="http://www.postgreSQL.org">Po ...@@ -13,12 +13,13 @@ PgAccess - a database management tool for <A HREF="http://www.postgreSQL.org">Po
<P>This program is protected by the following <A HREF="copyright.html">copyright</A> <P>This program is protected by the following <A HREF="copyright.html">copyright</A>
<LI> <LI>
<A HREF="pgaccess-0.86.tar.gz">Download the last version of PgAccess (press <A HREF="pgaccess-0.88.tar.gz">Download the last version of PgAccess (press
shift and click this link)</A>.</LI> shift and click this link)</A>.</LI>
<P>Latest version of PgAccess is 0.86 , 29 March 1998 ! <P>Latest version of PgAccess is 0.88 , 7 June 1998 !
<BR>&nbsp; <BR><br>&nbsp;
<font color='red'><b>NEW * NEW * NEW *</b></font> Precompiled libpgtcl and libpq binaries for i386 are <a href='ftp://ftp.flex.ro/pub/pgaccess'> here </a>!!!
<BR>&nbsp; <BR>&nbsp;
<CENTER><TABLE BORDER=3 CELLSPACING=0 CELLPADDING=0 WIDTH="100%" BGCOLOR="#FFB6C1" > <CENTER><TABLE BORDER=3 CELLSPACING=0 CELLPADDING=0 WIDTH="100%" BGCOLOR="#FFB6C1" >
<TR> <TR>
......
...@@ -8,12 +8,16 @@ ...@@ -8,12 +8,16 @@
# #
global activetab; global activetab;
global dbc; global dbc;
global username;
global password;
global dbname; global dbname;
global host; global host;
global mw; global mw;
global newdbname; global newdbname;
global newhost; global newhost;
global newpport; global newpport;
global newusername;
global newpassword;
global pport; global pport;
global pref; global pref;
global qlvar; global qlvar;
...@@ -992,6 +996,8 @@ if {$retval} { ...@@ -992,6 +996,8 @@ if {$retval} {
set pref(lastdb) {} set pref(lastdb) {}
set pref(lasthost) localhost set pref(lasthost) localhost
set pref(lastport) 5432 set pref(lastport) 5432
set pref(username) {}
set pref(password) {}
} else { } else {
while {![eof $fid]} { while {![eof $fid]} {
set pair [gets $fid] set pair [gets $fid]
...@@ -1483,9 +1489,14 @@ if {$mw(row_edited)==$mw(nrecs)} { ...@@ -1483,9 +1489,14 @@ if {$mw(row_edited)==$mw(nrecs)} {
} }
proc {open_database} {} { proc {open_database} {} {
global dbc host pport dbname sdbname newdbname newhost newpport pref global dbc host pport dbname username password newusername newpassword sdbname newdbname newhost newpport pref
catch {cursor_watch .dbod} catch {cursor_watch .dbod}
if {[catch {set newdbc [pg_connect $newdbname -host $newhost -port $newpport]} msg]} { if {$newusername!=""} {
set connres [catch {set newdbc [pg_connect -conninfo "host=$newhost port=$newpport dbname=$newdbname user=$newusername password=$newpassword"]} msg]
} else {
set connres [catch {set newdbc [pg_connect $newdbname -host $newhost -port $newpport]} msg]
}
if {$connres} {
catch {cursor_arrow .dbod} catch {cursor_arrow .dbod}
show_error "Error connecting database\n$msg" show_error "Error connecting database\n$msg"
} else { } else {
...@@ -1494,10 +1505,13 @@ if {[catch {set newdbc [pg_connect $newdbname -host $newhost -port $newpport]} m ...@@ -1494,10 +1505,13 @@ if {[catch {set newdbc [pg_connect $newdbname -host $newhost -port $newpport]} m
set host $newhost set host $newhost
set pport $newpport set pport $newpport
set dbname $newdbname set dbname $newdbname
set username $newusername
set password $newpassword
set sdbname $dbname set sdbname $dbname
set pref(lastdb) $dbname set pref(lastdb) $dbname
set pref(lasthost) $host set pref(lasthost) $host
set pref(lastport) $pport set pref(lastport) $pport
set pref(lastusername) $username
save_pref save_pref
catch {cursor_arrow .dbod; Window hide .dbod} catch {cursor_arrow .dbod; Window hide .dbod}
tab_click .dw.tabTables tab_click .dw.tabTables
...@@ -2430,16 +2444,15 @@ Window show .tiw ...@@ -2430,16 +2444,15 @@ Window show .tiw
set tiw(isunique) {} set tiw(isunique) {}
set tiw(isclustered) {} set tiw(isclustered) {}
set tiw(indexfields) {} set tiw(indexfields) {}
pg_select $dbc "select attnum,attname,typname,attlen,usename,pg_class.oid from pg_class,pg_user,pg_attribute,pg_type where (pg_class.relname='$tiw(tablename)') and (pg_class.oid=pg_attribute.attrelid) and (pg_class.relowner=pg_user.usesysid) and (pg_attribute.atttypid=pg_type.oid) order by attnum" rec { pg_select $dbc "select attnum,attname,typname,attlen,atttypmod,usename,pg_class.oid from pg_class,pg_user,pg_attribute,pg_type where (pg_class.relname='$tiw(tablename)') and (pg_class.oid=pg_attribute.attrelid) and (pg_class.relowner=pg_user.usesysid) and (pg_attribute.atttypid=pg_type.oid) order by attnum" rec {
set fsize $rec(attlen) set fsize $rec(attlen)
set fsize1 $rec(atttypmod)
set ftype $rec(typname) set ftype $rec(typname)
if {$ftype=="varchar"} { if { $fsize=="-1" && $fsize1!="-1" } {
incr fsize -4 set fsize $rec(atttypmod)
}
if {$ftype=="bpchar"} {
incr fsize -4 incr fsize -4
} }
if {$ftype=="text"} { if { $fsize1=="-1" && $fsize=="-1" } {
set fsize "" set fsize ""
} }
if {$rec(attnum)>0} {.tiw.lb insert end [format "%-33s %-14s %-4s" $rec(attname) $ftype $fsize]} if {$rec(attnum)>0} {.tiw.lb insert end [format "%-33s %-14s %-4s" $rec(attname) $ftype $fsize]}
...@@ -2540,10 +2553,12 @@ if {$retval} { ...@@ -2540,10 +2553,12 @@ if {$retval} {
} }
proc {main} {argc argv} { proc {main} {argc argv} {
global pref newdbname newpport newhost dbc global pref newdbname newpport newhost newusername newpassword dbc
load libpgtcl.so load libpgtcl.so
catch {draw_tabs} catch {draw_tabs}
load_pref load_pref
set newusername {}
set newpassword {}
if {$argc>0} { if {$argc>0} {
set newdbname [lindex $argv 0] set newdbname [lindex $argv 0]
set newhost localhost set newhost localhost
...@@ -2553,6 +2568,7 @@ if {$argc>0} { ...@@ -2553,6 +2568,7 @@ if {$argc>0} {
set newdbname $pref(lastdb) set newdbname $pref(lastdb)
set newhost $pref(lasthost) set newhost $pref(lasthost)
set newpport $pref(lastport) set newpport $pref(lastport)
catch {set newusername $pref(lastusername)}
open_database open_database
} }
wm protocol .dw WM_DELETE_WINDOW { wm protocol .dw WM_DELETE_WINDOW {
...@@ -2636,7 +2652,7 @@ proc vTclWindow.about {base} { ...@@ -2636,7 +2652,7 @@ proc vTclWindow.about {base} {
label $base.l2 -font -Adobe-Helvetica-Medium-R-Normal-*-*-120-*-*-*-*-* -relief groove -text {A Tcl/Tk interface to label $base.l2 -font -Adobe-Helvetica-Medium-R-Normal-*-*-120-*-*-*-*-* -relief groove -text {A Tcl/Tk interface to
PostgreSQL PostgreSQL
by Constantin Teodorescu} by Constantin Teodorescu}
label $base.l3 -borderwidth 0 -font -Adobe-Helvetica-Medium-R-Normal-*-*-120-*-*-*-*-* -relief sunken -text {vers 0.86} label $base.l3 -borderwidth 0 -font -Adobe-Helvetica-Medium-R-Normal-*-*-120-*-*-*-*-* -relief sunken -text {vers 0.88}
label $base.l4 -font -Adobe-Helvetica-Medium-R-Normal-*-*-120-*-*-*-*-* -relief groove -text {You will always get the latest version at: label $base.l4 -font -Adobe-Helvetica-Medium-R-Normal-*-*-120-*-*-*-*-* -relief groove -text {You will always get the latest version at:
http://www.flex.ro/pgaccess http://www.flex.ro/pgaccess
...@@ -2662,33 +2678,92 @@ proc vTclWindow.dbod {base} { ...@@ -2662,33 +2678,92 @@ proc vTclWindow.dbod {base} {
################### ###################
# CREATING WIDGETS # CREATING WIDGETS
################### ###################
toplevel $base -class Toplevel -cursor top_left_arrow toplevel $base -class Toplevel \
-cursor top_left_arrow
wm focusmodel $base passive wm focusmodel $base passive
wm geometry $base 282x128+353+310 wm geometry $base 282x180+358+333
wm maxsize $base 1009 738 wm maxsize $base 1009 738
wm minsize $base 1 1 wm minsize $base 1 1
wm overrideredirect $base 0 wm overrideredirect $base 0
wm resizable $base 0 0 wm resizable $base 0 0
wm deiconify $base
wm title $base "Open database" wm title $base "Open database"
label $base.lhost -borderwidth 0 -relief raised -text Host label $base.lhost \
entry $base.ehost -background #fefefe -borderwidth 1 -highlightthickness 1 -selectborderwidth 0 -textvariable newhost -borderwidth 0 -relief raised -text Host
label $base.lport -borderwidth 0 -relief raised -text Port entry $base.ehost \
entry $base.epport -background #fefefe -borderwidth 1 -highlightthickness 1 -selectborderwidth 0 -textvariable newpport -background #fefefe -borderwidth 1 -highlightthickness 1 \
label $base.ldbname -borderwidth 0 -relief raised -text Database -selectborderwidth 0 -textvariable newhost
entry $base.edbname -background #fefefe -borderwidth 1 -highlightthickness 1 -selectborderwidth 0 -textvariable newdbname bind $base.ehost <Key-Return> {
button $base.opbtu -borderwidth 1 -command open_database -padx 9 -pady 3 -text Open focus .dbod.epport
button $base.canbut -borderwidth 1 -command {Window hide .dbod} -padx 9 -pady 3 -text Cancel }
label $base.lport \
-borderwidth 0 -relief raised -text Port
entry $base.epport \
-background #fefefe -borderwidth 1 -highlightthickness 1 \
-selectborderwidth 0 -textvariable newpport
bind $base.epport <Key-Return> {
focus .dbod.edbname
}
label $base.ldbname \
-borderwidth 0 -relief raised -text Database
entry $base.edbname \
-background #fefefe -borderwidth 1 -highlightthickness 1 \
-selectborderwidth 0 -textvariable newdbname
bind $base.edbname <Key-Return> {
focus .dbod.eusername
.dbod.eusername selection range 0 end
}
label $base.lusername \
-borderwidth 0 -relief raised -text Username
entry $base.eusername \
-background #fefefe -borderwidth 1 -highlightthickness 1 \
-selectborderwidth 0 -textvariable newusername
bind $base.eusername <Key-Return> {
focus .dbod.epassword
}
label $base.lpassword \
-borderwidth 0 -relief raised -text Password
entry $base.epassword \
-background #fefefe -borderwidth 1 -highlightthickness 1 \
-selectborderwidth 0 -textvariable newpassword -show "*"
bind $base.epassword <Key-Return> {
focus .dbod.opbtu
}
button $base.opbtu \
-borderwidth 1 -command open_database -padx 9 -pady 3 -text Open
bind $base.opbtu <Key-Return> {
open_database
}
button $base.canbut \
-borderwidth 1 -command {Window hide .dbod} -padx 9 -pady 3 \
-text Cancel
################### ###################
# SETTING GEOMETRY # SETTING GEOMETRY
################### ###################
place $base.lhost -x 35 -y 7 -anchor nw -bordermode ignore place $base.lhost \
place $base.ehost -x 100 -y 5 -anchor nw -bordermode ignore -x 35 -y 7 -anchor nw -bordermode ignore
place $base.lport -x 35 -y 32 -anchor nw -bordermode ignore place $base.ehost \
place $base.epport -x 100 -y 30 -anchor nw -bordermode ignore -x 100 -y 5 -anchor nw -bordermode ignore
place $base.ldbname -x 35 -y 57 -anchor nw -bordermode ignore place $base.lport \
place $base.edbname -x 100 -y 55 -anchor nw -bordermode ignore -x 35 -y 32 -anchor nw -bordermode ignore
place $base.opbtu -x 70 -y 90 -width 60 -height 26 -anchor nw -bordermode ignore place $base.epport \
place $base.canbut -x 150 -y 90 -width 60 -height 26 -anchor nw -bordermode ignore -x 100 -y 30 -anchor nw -bordermode ignore
place $base.ldbname \
-x 35 -y 57 -anchor nw -bordermode ignore
place $base.edbname \
-x 100 -y 55 -anchor nw -bordermode ignore
place $base.lusername \
-x 35 -y 82 -anchor nw -bordermode ignore
place $base.eusername \
-x 100 -y 80 -anchor nw -bordermode ignore
place $base.lpassword \
-x 35 -y 107 -anchor nw -bordermode ignore
place $base.epassword \
-x 100 -y 105 -anchor nw -bordermode ignore
place $base.opbtu \
-x 70 -y 140 -width 60 -height 26 -anchor nw -bordermode ignore
place $base.canbut \
-x 150 -y 140 -width 60 -height 26 -anchor nw -bordermode ignore
} }
proc vTclWindow.dw {base} { proc vTclWindow.dw {base} {
...@@ -2755,7 +2830,8 @@ proc vTclWindow.dw {base} { ...@@ -2755,7 +2830,8 @@ proc vTclWindow.dw {base} {
Window show .dbod Window show .dbod
set newhost $host set newhost $host
set newpport $pport set newpport $pport
focus .dbod.edbname} \ focus .dbod.edbname
.dbod.edbname selection range 0 end} \
-label Open -label Open
$base.menubutton23.01 add command \ $base.menubutton23.01 add command \
\ \
...@@ -2972,6 +3048,12 @@ proc vTclWindow.iew {base} { ...@@ -2972,6 +3048,12 @@ proc vTclWindow.iew {base} {
place $base.oicb -x 170 -y 75 -anchor nw -bordermode ignore place $base.oicb -x 170 -y 75 -anchor nw -bordermode ignore
} }
proc {mw_canvas_paste} {x y} {
global mw
.mw.c insert $mw(id_edited) insert [selection get]
set mw(dirtyrec) 1
}
proc vTclWindow.mw {base} { proc vTclWindow.mw {base} {
if {$base == ""} { if {$base == ""} {
set base .mw set base .mw
...@@ -3036,6 +3118,9 @@ if {[mw_save_new_record]} {mw_select_records $nq} ...@@ -3036,6 +3118,9 @@ if {[mw_save_new_record]} {mw_select_records $nq}
bind $base.c <Button-1> { bind $base.c <Button-1> {
mw_canvas_click %x %y mw_canvas_click %x %y
} }
bind $base.c <Button-2> {
mw_canvas_paste %x %y
}
bind $base.c <Button-3> { bind $base.c <Button-3> {
if {[mw_exit_edit]} {mw_save_new_record} if {[mw_exit_edit]} {mw_save_new_record}
} }
......
...@@ -2,11 +2,9 @@ README ...@@ -2,11 +2,9 @@ README
INSTALL INSTALL
HISTORY HISTORY
register.txt register.txt
configure.in
doc/Machine-specific FAQ's doc/Machine-specific FAQ's
doc/TODO doc/TODO
doc/bug.template doc/bug.template
make new /mirgration file
update include/version.h after release update include/version.h after release
update backend/parser/scan.c and gram.c so flex/bison not necessary update backend/parser/scan.c and gram.c so flex/bison not necessary
update pgaccess update pgaccess
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment