- 05 Sep, 1999 3 commits
-
-
Tom Lane authored
automatically create the file, except during bootstrap mode where that seems to be necessary.
-
Tom Lane authored
We can't support these properly, since once the relation's physical files are unlinked, there's no way to roll back the transaction. I suppose we could postpone the unlink till transaction commit, but then what of BEGIN; DROP TABLE foo; CREATE TABLE foo; ? The code does allow dropping a table/index created in the current transaction block, however, since the post-abort state would be that the table doesn't exist anyway.
-
Tom Lane authored
-
- 04 Sep, 1999 8 commits
-
-
Bruce Momjian authored
-
Bruce Momjian authored
-
Tom Lane authored
real name before doing lookup. We only want to index temp tables by their real names in the relcache, to ensure there's not more than one relcache entry for them.
-
Tom Lane authored
to be deleted.
-
Tom Lane authored
pg_class tuple during ALTER TABLE ADD COLUMN.
-
Bruce Momjian authored
-
Tom Lane authored
has positive refcount, it is rebuilt from pg_class data. This ensures that relcache entries will track changes made by other backends. Formerly, a shared inval report would just be ignored if it happened to arrive while the relcache entry was in use. Also, fix relcache to reset ref counts to zero during transaction abort. Finally, change LockRelation() so that it checks for shared inval reports after obtaining the lock. In this way, once any kind of lock has been obtained on a rel, we can trust the relcache entry to be up-to-date.
-
Tom Lane authored
the SInval spinlock while it is calling the passed invalFunction or resetFunction. This is necessary to avoid deadlock with lmgr change; InvalidateSharedInvalid can be called recursively now. It should be a good performance improvement anyway --- holding a spinlock for more than a very short interval is a no-no.
-
- 03 Sep, 1999 3 commits
-
-
Thomas G. Lockhart authored
istm that this would be a job for configure. Most modern OSes actually use perl5 by default ;)
-
Byron Nikolaidis authored
-
Byron Nikolaidis authored
-
- 02 Sep, 1999 2 commits
-
-
Tom Lane authored
-
Tom Lane authored
insight that RelationFlushRelation ought to invoke smgrclose, and that the way to make that work is to ensure that mdclose doesn't fail if the relation is already closed (or unlinked, if we are looking at a DROP TABLE). While I was testing that, I was able to identify several problems that we had with multiple-segment relations. The system is now able to do initdb and pass the regression tests with a very small segment size (I had it set to 64Kb per segment for testing). I don't believe that ever worked before. File descriptor leaks seem to be gone too. I have partially addressed the concerns we had about mdtruncate(), too. On a Win32 or NFS filesystem it is not possible to unlink a file that another backend is holding open, so what md.c now does is to truncate unwanted files to zero length before trying to unlink them. The other backends will be forced to close their open files by relation cache invalidation --- but I think it would take considerable work to make that happen before vacuum truncates the relation rather than after. Leaving zero-length files lying around seems a usable compromise.
-
- 01 Sep, 1999 2 commits
-
-
Bruce Momjian authored
-
Thomas G. Lockhart authored
Thanks to Michael Deck <deckm@cleansoft.com> for the tipoff. Add more examples for language components.
-
- 31 Aug, 1999 3 commits
-
-
Tom Lane authored
backend. Still much left to do.
-
Tom Lane authored
error/notice message lengths, and number of fields per tuple. Add pqexpbuffer.c/.h, a frontend version of backend's stringinfo module. This is first step in applying Mike Ansley's long-query patches, even though he didn't do any of these particular changes...
-
Tom Lane authored
robust, since it's about to get used much more heavily.
-
- 29 Aug, 1999 2 commits
-
-
Tom Lane authored
mkMakefile.tkdefs.sh.in.
-
Tom Lane authored
and 1370 (timestamp(datetime)). This does not force an initdb, exactly, but you won't see the effects of the bug fix until you do one. BTW, OID 1358 for timespan(time) is still broken: select timespan('21:11:26'::time); ERROR: No such function 'time_timespan' with the specified attributes But I couldn't figure out what it ought to be defined as, so I left it be.
-
- 28 Aug, 1999 2 commits
-
-
Tom Lane authored
more verbose results from ruleutils.c changes.
-
Tom Lane authored
references or CASE expressions, didn't parenthesize complex expressions properly. Also, always output variable references as fully qualified names to eliminate ambiguity bug recently reported. (This could be smarter, but reliability comes first.)
-
- 26 Aug, 1999 2 commits
-
-
Tom Lane authored
Most parts of the planner should ignore, or indeed never even see, uplevel Vars because they will be or have been replaced by Params. There were a couple of places that got it wrong though, probably my fault from recent changes...
-
Tom Lane authored
last loop which would return the *first* surviving-to-that-point candidate regardless of which one actually passed the test. This was producing such curious results as 'oid % 2' getting translated to 'int2(oid) % 2'.
-
- 25 Aug, 1999 3 commits
-
-
Tom Lane authored
documented intepretation of the lefthand and oper fields. Fix a number of obscure problems while at it --- for example, the old code failed if the parser decided to insert a type-coercion function just below the operator of a SubLink. CAUTION: this will break stored rules that contain subplans. You may need to initdb.
-
Tatsuo Ishii authored
-
Tatsuo Ishii authored
It will keep track the number of pages allocated so that vacuum could allocate twice of the previous allocation. This will greatly reduce the total memory consumption of vacuum.
-
- 24 Aug, 1999 2 commits
-
-
Tom Lane authored
ALLOC_BIGCHUNK_LIMIT are always allocated as separate malloc() blocks, and are free()d immediately upon pfree(). Also, if such a chunk is enlarged with repalloc(), translate the operation into a realloc() so as to minimize memory usage. Of course, these large chunks still get freed automatically if the alloc set is reset. I have set ALLOC_BIGCHUNK_LIMIT at 64K for now, but perhaps another size would be better?
-
Tom Lane authored
constant to a different type. Not sure that this could happen in ordinary parser usage, but it can in some new code I'm working on...
-
- 23 Aug, 1999 1 commit
-
-
Tom Lane authored
match then it tried for a self-commutative operator with the reversed input data types. This is pretty silly; there could never be such an operator, except maybe in binary-compatible-type scenarios, and we have oper_inexact for that. Besides which, the oprsanity regress test would complain about such an operator. Remove nonfunctional code and simplify routine calling convention accordingly.
-
- 22 Aug, 1999 3 commits
-
-
Tom Lane authored
case where ORDER BY and GROUP BY request the same sort order.
-
Tom Lane authored
-
Tom Lane authored
and fix_opids processing to a single recursive pass over the plan tree executed at the very tail end of planning, rather than haphazardly here and there at different places. Now that tlist Vars do not get modified until the very end, it's possible to get rid of the klugy var_equal and match_varid partial-matching routines, and just use plain equal() throughout the optimizer. This is a step towards allowing merge and hash joins to be done on expressions instead of only Vars ...
-
- 21 Aug, 1999 3 commits
-
-
Tom Lane authored
sort order down into planner, instead of handling it only at the very top level of the planner. This fixes many things. An explicit sort is now avoided if there is a cheaper alternative (typically an indexscan) not only for ORDER BY, but also for the internal sort of GROUP BY. It works even when there is no other reason (such as a WHERE condition) to consider the indexscan. It works for indexes on functions. It works for indexes on functions, backwards. It's just so cool... CAUTION: I have changed the representation of SortClause nodes, therefore THIS UPDATE BREAKS STORED RULES. You will need to initdb.
-
Tom Lane authored
operators (and some other places), fix rangechecks in int8 to int4 conversion (same problem we recently figured out in pg_atoi).
-
Tom Lane authored
failed on 'field < textconstant' ...
-
- 18 Aug, 1999 1 commit
-
-
Bruce Momjian authored
-