summaryrefslogtreecommitdiff
path: root/src/backend/utils/misc/trace.c
AgeCommit message (Collapse)Author
2000-05-31The heralded `Grand Unified Configuration scheme' (GUC)Peter Eisentraut
That means you can now set your options in either or all of $PGDATA/configuration, some postmaster option (--enable-fsync=off), or set a SET command. The list of options is in backend/utils/misc/guc.c, documentation will be written post haste. pg_options is gone, so is that pq_geqo config file. Also removed were backend -K, -Q, and -T options (no longer applicable, although -d0 does the same as -Q). Added to configure an --enable-syslog option. changed all callers from TPRINTF to elog(DEBUG)
2000-05-26Fix too long syslog message problemTatsuo Ishii
2000-04-12Ye-old pgindent run. Same 4-space tabs.Bruce Momjian
2000-04-10The constant in backend/utils/misc/trace.c, line 32 limits the length ofBruce Momjian
logged queries to 1024, truncating longer queries. That is about half of the size I need (I have a union that is 2K long). Can someone consider bumping it to 4K or so? Patch attached... Regards, Ed Loehr
2000-02-13contrib-array.patchBruce Momjian
this is an old patch which I have already submitted and never seen in the sources. It corrects the datatype oids used in some iterator functions. This bug has been reported to me by many other people. contrib-datetime.patch some code contributed by Reiner Dassing <[email protected]> contrib-makefiles.patch fixes all my contrib makefiles which don't work with some compilers, as reported to me by another user. contrib-miscutil.patch an old patch for one of my old contribs. contrib-string.patch a small change to the c-like text output functions. Now the '{' is escaped only at the beginning of the string to distinguish it from arrays, and the '}' is no more escaped. elog-lineno.patch adds the current lineno of CopyFrom to elog messages. This is very useful when you load a 1 million tuples table from an external file and there is a bad value somehere. Currently you get an error message but you can't know where is the bad data. The patch uses a variable which was declared static in copy.c. The variable is now exported and initialized to 0. It is always cleared at the end of the copy or at the first elog message or when the copy is canceled. I know this is very ugly but I can't find any better way of knowing where the copy fails and I have this problem quite often. plperl-makefile.patch fixes a typo in a makefile, but the error must be elsewhere because it is a file generated automatically. Please have a look. tprintf-timestamp.patch restores the original 2-digit year format, assuming that the two century digits don't carry much information and that '000202' is easier to read than 20000202. Being only a log file it shouldn't break anything. Please apply the patches before the next scheduled code freeze. I also noticed that some of the contribs don't compile correcly. Should we ask people to fix their code or rename their makefiles so that they are ignored by the top makefile? -- Massimo Dal Zotto
2000-01-02Remove DATEDEBUG because it didn't look Y2K safe, and fix timestamp elogBruce Momjian
to be Y2K safe.
1999-09-27Massimo's SET FSYNC and SHOW PG_OPTIONS changes, without SET QUERY_LIMIT.Bruce Momjian
1999-09-11Eliminate elog()'s hardwired limit on length of an error message.Tom Lane
This change seems necessary in conjunction with long queries, and it cleans up some bogosity in connection with long EXPLAIN texts anyway. Note that current libpq will accept any length error message (at least until it runs out of memory); prior versions have a limit of 8K, but will cleanly discard excess error text, so there shouldn't be any big compatibility problems with old clients.
1999-07-17 Move some system includes into c.h, and remove duplicates.Bruce Momjian
1999-07-16Final cleanupBruce Momjian
1999-07-15Remove unused #includes in *.c files.Bruce Momjian
1999-06-12Reversed out Massimo patch.Bruce Momjian
1999-06-12I don't like last minute patches before the final freeze, but I believe thatBruce Momjian
this one could be useful for people experiencing out-of-memory crashes while executing queries which retrieve or use a very large number of tuples. The problem happens when storage is allocated for functions results used in a large query, for example: select upper(name) from big_table; select big_table.array[1] from big_table; select count(upper(name)) from big_table; This patch is a dirty hack that fixes the out-of-memory problem for the most common cases, like the above ones. It is not the final solution for the problem but it can work for some people, so I'm posting it. The patch should be safe because all changes are under #ifdef. Furthermore the feature can be enabled or disabled at runtime by the `free_tuple_memory' options in the pg_options file. The option is disabled by default and must be explicitly enabled at runtime to have any effect. To enable the patch add the follwing line to Makefile.custom: CUSTOM_COPT += -DFREE_TUPLE_MEMORY To enable the option at runtime add the following line to pg_option: free_tuple_memory=1 Massimo
1999-06-05trace.patch (compilation error)Marc G. Fournier
the gettimeofday doesn't compile under Linux with glibc2 because the DST_NONE constant is no more defined. It seems that this code (written by me) has always be wrong but for some reason working. From: Massimo Dal Zotto <[email protected]>
1999-05-26Make functions static or NOT_USED as appropriate.Bruce Momjian
1999-05-25pgindent run over code.Bruce Momjian
1999-05-22Modify backend switch parsing to prevent 'insecure' switchesTom Lane
from being accepted when they are passed from client connection request. Get rid of a couple that no longer do anything (like -P).
1999-05-11Changed debug options:Jan Wieck
-d4 now prints compressed trees from nodeToString() -d5 prints pretty trees via nodeDisplay() new pg_options: pretty_plan, pretty_parse, pretty_rewritten Jan
1999-03-16Fix snprintf with strings, and nextval('"Aa"');Bruce Momjian
1999-02-13Change my-function-name-- to my_function_name, and optimizer renames.Bruce Momjian
1999-01-17Add missing variable, per Massimo.Tom Lane
1999-01-17Apply Win32 patch from Horak Daniel.Bruce Momjian
1999-01-01 Some security, since we now have vsnprintf, I remade an old patchBruce Momjian
with some extra ugly sprintfs fixed. More work in this area is needed still. Göran Thyni
1998-10-28Reverse out addition of snprintf.Bruce Momjian
1998-10-27Fix for tprintf overruns from Göran Thyni.Bruce Momjian
1998-10-16The problem is that read_pg_options needs DataDir to read its file butBruce Momjian
DataDir is set after read_pg_options if postgres is called interactively. If postgres is forked by postgres DataDir is read from the PGDATA enviromnent variable set by the postmaster and this explains while the bug disappears. I have written this patch but I don't like it. Any better idea? Massimo Dal Zotto
1998-10-06Substantial rewrite of async.c to avoid problems with non-reentrant stdioTom Lane
and possibly other problems. Minor changes in xact.c and postgres.c's main loop to support new handling of async NOTIFY.
1998-09-03> Yikes, that is certainly not standard C. I have never seen thatBruce Momjian
before. > Looks like a GNU-ism. I nice one, but still a GNU-ism. Sorry, I didn't know it is a GNU extension. I have written this patch which should fix the problem. Let me know if you still have problems. Massimo Dal Zotto
1998-09-02Fix for indexing problems.Bruce Momjian
1998-09-01OK, folks, here is the pgindent output.Bruce Momjian
1998-08-25cvs add'd two files for the tprintf() patch...Marc G. Fournier