diff options
author | Andres Freund <andres@anarazel.de> | 2017-03-03 17:54:46 -0800 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2017-03-03 17:57:30 -0800 |
commit | 1309375e706440e1e2fe2a5bb74effbc639261ef (patch) | |
tree | 99cd22d18524ef2689d03c4bf6da729f197b8324 /src | |
parent | 2357c12b4988b4d30c1e2e813e438424546eaa88 (diff) | |
download | postgresql-1309375e706440e1e2fe2a5bb74effbc639261ef.tar.gz postgresql-1309375e706440e1e2fe2a5bb74effbc639261ef.zip |
Fix two recently introduced grammar errors in mmgr/README.
These were introduced by me in f4e2d50c.
Reported-By: Tomas Vondra
Discussion: https://postgr.es/m/11adca69-be28-44bc-a801-64e6d53851e3@2ndquadrant.com
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/mmgr/README | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/mmgr/README b/src/backend/utils/mmgr/README index b83b29c268f..480b1f89d02 100644 --- a/src/backend/utils/mmgr/README +++ b/src/backend/utils/mmgr/README @@ -98,7 +98,7 @@ invoked to handle the operation, regardless. ----------------------------- If all contexts were independent, it'd be hard to keep track of them, -especially in error cases. That is solved this by creating a tree of +especially in error cases. That is solved by creating a tree of "parent" and "child" contexts. When creating a memory context, the new context can be specified to be a child of some existing context. A context can have many children, but only one parent. In this way @@ -383,8 +383,8 @@ precede the MemoryContext. This means the only overhead implied by the memory context mechanism is a pointer to its context, so we're not constraining context-type designers very much. -Given this, routines like pfree their corresponding context with an -operation like (although that is usually encapsulated in +Given this, routines like pfree determine their corresponding context +with an operation like (although that is usually encapsulated in GetMemoryChunkContext()) MemoryContext context = *(MemoryContext*) (((char *) pointer) - sizeof(void *)); |