Bruce Momjian
e126958c2e
Update copyright notices for year 2012.
14 years ago
Bruce Momjian
7012b5edb7
Remove scandir() requirement in pg_upgrade; instead just use readdir()
...
--- we were not using the scandir pattern filtering anyway. This also
removes the scandir requirement in configure.
14 years ago
Bruce Momjian
ee3ef8f30c
Fix pg_upgrade's pg_scandir_internal() the right way. Backpatch to 9.1.
14 years ago
Bruce Momjian
988f907d24
Fix pg_upgrade's pg_scandir_internal() to properly handle a NULL
...
pattern, which is used on PG 9.1 and HEAD (but not pre-9.1). Fixes
crash on Windows.
Backpatched to 9.1.
Reported by Mark Dilger
14 years ago
Bruce Momjian
b735757c32
Remove pg_upgrade function no longer called (dir_matching_filenames).
14 years ago
Bruce Momjian
f1312b5ed3
Add postgres.h to *.c files for pg_upgrade, ltree, and btree_gist, and
...
remove from local *.h files.
Per suggestion from Alvaro.
15 years ago
Peter Eisentraut
912bc4f038
Make pg_upgrade output more consistent with project style
...
Add errno-based output to error messages where appropriate, reformat
blocks to about 72 characters per line, use spaces instead of tabs for
indentation, and other style adjustments.
15 years ago
Peter Eisentraut
d7fb49314d
Fix use of unportable %m format
15 years ago
Bruce Momjian
5c5f83507c
Adjust pg_upgrade FATAL error messages to have consistent newlines.
...
Also adjust some error message capitalization for consistency.
15 years ago
Bruce Momjian
f6322b3191
In pg_upgrade, only compile copy_file() on non-Win32 systems.
...
Per report from Andrew Dunstan.
15 years ago
Bruce Momjian
bf50caf105
pgindent run before PG 9.1 beta 1.
15 years ago
Bruce Momjian
898a14e1a0
Remove unused copy_dir() function from pg_upgrade.
15 years ago
Bruce Momjian
d367d41d66
Fix file descriptor leaks in pg_upgrade in failure code paths.
15 years ago
Bruce Momjian
5d950e3b0c
Stamp copyrights for year 2011.
15 years ago
Tom Lane
3864afa1d1
Clean up some copied-and-pasted code in pg_upgrade.
...
1. Don't reimplement S_ISDIR() and S_ISREG() badly.
2. Don't reimplement access() badly.
This code appears to have been copied from ancient versions of the
corresponding backend routines, and not patched to incorporate subsequent
fixes (see my commits of 2008-03-31 and 2010-01-14 respectively).
It might be a good idea to change it to just *call* those routines,
but for now I'll just transpose these fixes over.
15 years ago
Bruce Momjian
07456b45e6
Pgindent run on pg_upgrade source after restructuring.
15 years ago
Bruce Momjian
e13f7e9a71
Restructure the pg_upgrade code to use several global structures rather
...
than packing everything into 'ctx' and passing that to every function.
15 years ago
Bruce Momjian
a1bb570de9
Fix leak patch that was using fclose() instead of close().
15 years ago
Bruce Momjian
f175884520
Properly close files after read file failure to prevent potential
...
resource leak. Of course, any such failure aborts pg_upgrade, but might
as well be clean about it.
Per patch from Grzegorz Ja?kiewicz.
15 years ago
Magnus Hagander
9f2e211386
Remove cvs keywords from all files.
15 years ago
Bruce Momjian
a0d7c5f689
Properly report errno/out-of-disk-space error from pg_upgrade when in
...
copy mode, per report from depstein@alliedtesting.com .
Patch suggestion from Magnus.
Backpatch to 9.0.X.
16 years ago
Bruce Momjian
239d769e7e
pgindent run for 9.0, second run
16 years ago
Bruce Momjian
da254e3d16
Make pg_upgrade copyrights just 2010, not 2010-2010.
16 years ago
Bruce Momjian
de255a6eb1
Add copyrights to pg_upgrade and pg_upgrade_tools files, per Tom.
16 years ago
Bruce Momjian
ccbe0c14e6
Add CVS tags to pg_upgrade and pg_upgrade_support files, per request
...
from Tom.
16 years ago
Tom Lane
600fc1dc9d
Get rid of some more stuff that duplicates c.h or port.h.
16 years ago
Bruce Momjian
5c337fb45c
Adjust pg_upgrade BSD defines for scandir(), per report from Giles Lean
16 years ago
Bruce Momjian
5781d96dc3
Change bsdi define to __bsdi__
16 years ago
Tom Lane
adf6b8edfb
Spell __darwin__ correctly, to suppress compiler warning on OSX.
16 years ago
Bruce Momjian
e9ad14f9f4
Use NAMEDATALEN instead of local define.
...
Modify path separators for Win32.
Per ideas from Takahiro Itagaki
16 years ago
Bruce Momjian
36d3afd2d4
Remove all mentions of EnterpriseDB Advanced Server from pg_upgrade;
...
EDB must maintain their own patch set for this.
16 years ago
Tom Lane
382ff21203
Fix up lame idea of not using autoconf to determine if platform has scandir().
...
Should fix buildfarm failures.
16 years ago
Tom Lane
c9c25a982c
Clean up unnecessary unportability and compiler warnings by removing the
...
cmp parameter for pg_scandir(). The code failed to support this anyway
for Sun/Windows, so pretending we could accept a parameter other than
NULL was just asking for trouble.
16 years ago
Bruce Momjian
c2e9b2f288
Add pg_upgrade to /contrib; will be in 9.0 beta2.
...
Add documentation.
Supports migration from PG 8.3 and 8.4.
16 years ago