Bruce Momjian
e27338f26c
Do thread testing from configure in a much cleaner fashion.
2004-04-27 19:51:12 +00:00
Bruce Momjian
ca8a8baa76
Add comments.
2004-04-27 18:40:50 +00:00
Bruce Momjian
f687c7e87f
Use mktemp for temporary file names, per suggestion from Peter.
2004-04-27 18:36:31 +00:00
Bruce Momjian
b498b795a0
Move postgres.h to the top of the C file.
2004-04-27 17:22:41 +00:00
Bruce Momjian
095ed37f13
Fix subdir for thread test program.
2004-04-26 18:32:33 +00:00
Bruce Momjian
144d828e7f
More thread error improvments.
2004-04-26 00:38:25 +00:00
Bruce Momjian
2f5223600a
More thread error message improvments.
2004-04-26 00:36:18 +00:00
Bruce Momjian
ae5bc8a601
No need to use our standard libs for the thread test --- they might not
...
be compiled yet.
2004-04-25 20:47:56 +00:00
Bruce Momjian
f6646efa4c
Hook thread_test program run at the end of configure run.
...
Add test for cross-compiles that they have to run the thread_test
program on the target machine.
2004-04-23 23:58:12 +00:00
Bruce Momjian
95178c8d24
Report error if thread-test is run without having threading enabled in
...
configure.
2004-04-23 22:21:49 +00:00
Bruce Momjian
66b42d3028
Improve thread test program. Test only functions that need testing.
2004-04-23 20:35:50 +00:00
Bruce Momjian
7a66015e98
Add new auto-detection of thread flags.
...
Allow additional thread flags to be added via port templates.
Change thread flag names to PTHREAD_CFLAGS and PTHREAD_LIBS to match new
configure script.
2004-04-23 18:15:55 +00:00
Bruce Momjian
1b4e82559c
Simplify thread test program.
2004-04-22 23:58:03 +00:00
Bruce Momjian
f9a2d0b2fb
More thread test program improvements.
2004-04-21 20:58:56 +00:00
Bruce Momjian
53b5455387
Improve thread test program to show if non-*_r functions are even called.
2004-04-21 20:51:54 +00:00
Bruce Momjian
055b0d27f6
Add thread program mention of errno thread-safety.
2004-04-06 13:55:17 +00:00
Bruce Momjian
d8fe99d98c
Add comment that sched_yield might be a portability problem.
2004-04-05 14:13:45 +00:00
Bruce Momjian
a86c329f99
Change getpid() while loop to use sched_yield(), greatly speeds up test.
...
sched_yield is a requirement for the test but not for our PostgreSQL
code, so if it causes a portability problem, we will remove it.
2004-04-05 14:12:32 +00:00
Bruce Momjian
a1d63d9232
Have threads wait for parent to test thread-specific pointers before
...
exiting.
2004-04-05 05:43:06 +00:00
Bruce Momjian
53ddde5b74
Add volatile to thread-specific thread variables.
2004-04-05 02:22:14 +00:00
Bruce Momjian
31f48c9afe
Update thread test to only test for 'localhost' and local machine name.
2004-04-05 01:27:58 +00:00
Bruce Momjian
d56b736db0
Update thread test to do getpid() in while loop, also use weather.com
...
rather than slashdot.org for testing.
2004-04-04 17:23:54 +00:00
Bruce Momjian
b803cf4320
Clean up thread test program.
2004-03-28 02:37:31 +00:00
Bruce Momjian
db9a957618
Add test for thread-safe errno to thread test program.
2004-03-27 23:02:44 +00:00
Bruce Momjian
c8aaa5ceec
Remove suggestiong for using test for wal_sync_method.
2004-03-20 16:18:41 +00:00
Bruce Momjian
8726591720
Make test_fsync use optimizer flag.
2004-03-18 23:27:29 +00:00
Bruce Momjian
6b34711824
Allocate 16mb file for testing.
2004-03-18 20:09:33 +00:00
Bruce Momjian
9e231bab65
Have program default to 1000 loops, and add file name and loop option.
...
Make open/close loop testings the same. Add descriptions for certain tests.
2004-03-18 19:54:00 +00:00
Bruce Momjian
9ae9ad155d
Add comment about using this testing for wal_sync_method.
2004-03-18 17:23:56 +00:00
Bruce Momjian
b2906c5be3
Add fsync tests:
...
Compare fsync before and after write's close:
Compare one o_sync write to two:
Compare file sync methods with one 8k write:
Compare file sync methods with 2 8k writes:
2004-03-18 15:26:27 +00:00
Bruce Momjian
5ddecd1e27
Mention which fsync methods are unavailable.
2004-03-18 14:02:58 +00:00
Bruce Momjian
69138a9429
Add permission mode to opens().
2004-03-18 04:11:41 +00:00
Bruce Momjian
bfaa9a0ada
Add missing include
2004-03-18 04:04:36 +00:00
Bruce Momjian
00051c9b56
Remove acccidental object/binary files.
2004-03-18 03:57:58 +00:00
Bruce Momjian
9f2696f266
Add fsync test program. It tests fsync to see if times for fsync are the
...
same when done on the write() ile descriptor and a new descriptor.
it also times various fsync methods.
2004-03-18 03:56:59 +00:00
Bruce Momjian
c6f0559371
Check and set thread-safe functions separately, rather than as a single
...
variable.
Remove thread locking for non-thread-safe functions, instead throw a
compile error.
Platforms will have to re-run tools/thread to record their thread
safety.
2004-02-11 21:44:06 +00:00
Bruce Momjian
011ad7efec
Set only LC_ALL for sort in tags creation.
2004-02-02 17:29:32 +00:00
Bruce Momjian
10bb17e334
Set locale to C before doing sort in make_ctags.
2004-02-01 23:11:33 +00:00
Bruce Momjian
21a1202281
Remove trailing newline from file.
2004-01-04 00:50:11 +00:00
Bruce Momjian
e3107b2844
Mention grabbing typedefs from pgsql/lib too.
2004-01-04 00:11:29 +00:00
Bruce Momjian
85f51dea1c
Supress ecpg thread test if configure didn't enable threads. Fix
...
tools/thread to run even if configure didn't enable threads because this
test is used before enabling threads for the OS.
2003-12-19 23:29:15 +00:00
Bruce Momjian
32abf0e781
Bump all version numbers and version stamps mentioned in RELEASE_CHANGES.
2003-11-30 06:09:54 +00:00
PostgreSQL Daemon
969685ad44
$Header: -> $PostgreSQL Changes ...
2003-11-29 19:52:15 +00:00
Peter Eisentraut
8878cc4cd7
Rename USE_THREADS to ENABLE_THREAD_SAFETY to avoid name clash with Perl.
...
Fixes compilation failure with --enable-thread-safety --with-perl and Perl
5.6.1.
2003-11-24 13:16:22 +00:00
Peter Eisentraut
d28bacd897
Add note to update config.guess and config.sub at the start of beta.
2003-11-04 10:33:28 +00:00
Bruce Momjian
e69b2f3b0e
Remove weird test in ccsym
2003-10-24 21:28:52 +00:00
Bruce Momjian
cded27cacd
Don't reference pthread.h unless we have threads enabled, per Peter.
2003-10-24 20:48:10 +00:00
Bruce Momjian
d665217278
Fix include used by entab.
2003-10-07 17:40:09 +00:00
Bruce Momjian
a994d5984f
Adjust pgindent for newer awks.
...
Nigel J. Andrews
2003-09-28 00:25:22 +00:00
Bruce Momjian
b4ca39b956
Allow pgindent to work with newer BSD indents.
2003-09-28 00:22:58 +00:00