of just doing the compression.
Postgres also will automatically try to compress data like byteas if the
record is larger than 2kB (1/4 of the block size if you've changed the block
size). So you may not have to do anything if you're just looking to save space
on disk.
--
Gregory Stark
EnterpriseDB
an xid to be allocated
and seeing how much it slows down the benchmark would be a good substitute.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
---(end of broadcast)---
TIP 4: Have you searched our list archives
of
buffers isn't particularly interesting unless there's some magic numbers we're
trying to hit.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
---(end of broadcast)---
TIP 6: explain analyze is your friend
NUM_CLOG_BUFFERS just moves around the arbitrary bottleneck. This
benchmark is useful in that it gives us an idea where the bottleneck lies for
various values of NUM_CLOG_BUFFERS but it doesn't tell us what value realistic
users are likely to bump into.
--
Gregory Stark
EnterpriseDB http
.
So the case that wouldn't be covered would be if you have a descending index
on one table and an ascending index on another table and try to merge join
them?
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
---(end of broadcast
with equivalence classes. There are a few comments indicating we don't
currently fully track columns of subrels of append rels in equivalence
classes. I'm not sure what the consequences of adding those columns as full
members of the equivalence classes would be.
--
Gregory Stark
EnterpriseDB http
.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
---(end of broadcast)---
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can
accumulate
paths to produce that order. And when we come to produce the final plan we
check if we have an already-ordered path which will produce the required
column and has a startup cost less than the total cost of the cheapest path.
--
Gregory Stark
EnterpriseDB http
Tom Lane [EMAIL PROTECTED] writes:
Gregory Stark [EMAIL PROTECTED] writes:
Pavel Stehule [EMAIL PROTECTED] writes:
Why new calling convention? I would to support byref variables and
then I have to carry memory context info ... and maybe some others
I think first you have to invent something
. In particular nested loop and merge joins. Unique also preserves the
order but I can't see how it could be useful here. And of course potentially
Append nodes in the future...
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
---(end of broadcast
match?
Perhaps it should be even later and we should store the NULL default in the
catalog but filter it out when we build the relcache? Then pg_dump wouldn't
need any special intelligence to detect when the default doesn't match the
parent
--
Gregory Stark
EnterpriseDB http
justified.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
---(end of broadcast)---
TIP 2: Don't 'kill -9' the postmaster
. That was legal in the old
protocol.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's Slony Replication support!
---(end of broadcast)---
TIP 5: don't forget to increase your free space map settings
, you can't use it.
Are entities like #x3041; ok?
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's Slony Replication support!
---(end of broadcast)---
TIP 2: Don't 'kill -9' the postmaster
. It could be an autoconf test though.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's PostGIS support!
---(end of broadcast)---
TIP 2: Don't 'kill -9' the postmaster
contrib module and it's likely to suffer the same bitrot problem if it lives
in pgfoundry.
Incidentally I would like to call xlog.c:RecordIsValid() which is currently a
static function. Any objection to exporting it? It doesn't depend on any
external xlog.c state.
--
Gregory Stark
EnterpriseDB
sequentially, not randomly.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's On-Demand Production Tuning
---(end of broadcast)---
TIP 9: In versions below 8.0, the planner will ignore your desire
lc_monetary setting.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's Slony Replication support!
---(end of broadcast)---
TIP 4: Have you searched our list archives?
http
Tom Lane [EMAIL PROTECTED] writes:
However, accumulation of zillions of gmon.out files is definitely a
downside of the approach; one that I've noticed myself.
Comments?
All I can add is that I've run into this problem myself too.
--
Gregory Stark
EnterpriseDB http
in the plpgsql lexer, and that means that it will
never be substituted for by read_sql_construct(). So it's effectively
a reserved word.
Perhaps we should be throwing a more intelligible error if you have a
parameter (or variable?) named in a way that will conflict?
--
Gregory Stark
EnterpriseDB
Tom Lane [EMAIL PROTECTED] writes:
Gregory Stark [EMAIL PROTECTED] writes:
FWIW I found another issue with this variable when I was experimenting with
small block sizes. If you set the target = the tuple header the toaster
breaks. This is because it's doing unsigned arithmetic (Size
be great if this would push to the wiki. That has been working
really well through the cycle.
How many developers have even jumped through the hoops to get wiki accounts?
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's On-Demand Production Tuning
from what a DSM would need. We
could skip vacuuming such HOT updated dead tuples, assuming a page prune will
get it the next time we access the page I suppose. Or we could use a separate
bit for more aggressive vacuum information.
--
Gregory Stark
EnterpriseDB http
to
clear the bit and only if the page was marked as having the bit set.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's PostGIS support!
---(end of broadcast)---
TIP 9: In versions below 8.0
POSIX systems we know of.
I suppose if we could keep count of tuples and a count of free space and use a
whole word. Map files would be 1M per 2G heap file (on an 8kb blocksize and
4-byte words). More complicated than necessary but I'm just thinking out loud.
--
Gregory Stark
EnterpriseDB
originally posted works on Oracle. I wonder how they
do it.
I think they only have one type which uses different storage formats depending
on the data.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's PostGIS support
always generate resjunk columns for ORDER BY expressions, and get the
planner to collapse out columns that are redundant. But that seems too big a
change to contemplate for 8.3.
That clearly sounds right.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Get trained
analogous to the important kind of
style details like what Tom was pointing out about using GETARG_* at the top
of your function to make the argument types clear.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Get trained by Bruce Momjian - ask me about EnterpriseDB's
on that for patches. We reformat
with pgindent periodically anyways.
It's like a doctor's practice concerned about malpractice claims publishing a
written guideline explicitly listing which articles of clothing aren't
professional looking enough.
--
Gregory Stark
EnterpriseDB http
?
+1
I've been casting to Numeric anyway.
Shouldn't the cast be implicit anyways? What does having double precision
operators buy us? Wouldn't it introduce ambiguities?
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's 24x7 Postgres support
fall under and so on.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's 24x7 Postgres support!
---(end of broadcast)---
TIP 4: Have you searched our list archives?
http
the concept of open versus closed end-points
through deeper into the estimation logic?
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's RemoteDBA services!
---(end of broadcast)---
TIP 3: Have you
of the advantages of using separate files. It would be easy to have
or not have a whole file. It would be pretty hard to know whether the bits
spread on every nth page are missing and hard to add them later if the table
grows and they're needed.
--
Gregory Stark
EnterpriseDB http
the bogus range to calculate the histogram estimate but apply
the LIKE pattern directly to the most-frequent-values instead of applying the
bogus range? Or would that be too much code re-organization for now?
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Get trained by Bruce
it isn't clear how to judge the amount of
warning.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's Slony Replication support!
---(end of broadcast)---
TIP 9: In versions below 8.0, the planner
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Get trained by Bruce Momjian - ask me about EnterpriseDB's PostgreSQL
training!
---(end of broadcast)---
TIP 3: Have you checked our extensive FAQ?
http
of tsqueries. But that seems pretty integral to the functionality
and I don't see any way to avoid it. It's not entirely unlike the idea of
regexps which I'm sure would seem unnatural if we were just meeting them with
no background.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
a slower or ad-hoc non-prepared query is allowed to evict those
pages.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's Slony Replication support!
---(end of broadcast)---
TIP 1: if posting/reading
an equivalent to LIKE for regexps.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's RemoteDBA services!
---(end of broadcast)---
TIP 1: if posting/reading through Usenet, please send an appropriate
Peter Eisentraut [EMAIL PROTECTED] writes:
Am Dienstag, 13. November 2007 schrieb Gregory Stark:
Peter Eisentraut [EMAIL PROTECTED] writes:
What we'd need is a way to convert a LIKE pattern into a tsquery
('%foo%bar%' = 'foo bar'). Then you might even be able to sneak
index-optimized
|
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's Slony Replication support!
---(end of broadcast)---
TIP 7: You can help support the PostgreSQL project by donating at
http
casted text to tsquery then define a
text = tsquery operator which does what @@ does. Then you could write
queries like:
WHERE col = 'foo bar' ?
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's Slony Replication support
Simon Riggs [EMAIL PROTECTED] writes:
Proposed changes:
1. Add function contains()
2. Alter docs to show use of contains()
All other @@ features still the same
Have you yet given any advantages of contains over @@ ?
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Tom Lane [EMAIL PROTECTED] writes:
Magnus Hagander [EMAIL PROTECTED] writes:
On Wed, Nov 14, 2007 at 07:46:58AM +, Gregory Stark wrote:
Have you yet given any advantages of contains over @@ ?
Familiarity for users of SQL Server that are migrating? ;-)
(http://msdn2.microsoft.com/en-us
system usage: CPU 0.11s/0.09u sec elapsed 6.02 sec
it seems like a serious omission that this gives you no hint how many
pages were scanned.
Isn't it pages removed + remain? 116 in this case.
How do 40 tuples take 105 pages?
--
Gregory Stark
EnterpriseDB http
but the database's internal arithmetic is done using software
emulated math.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's PostGIS support!
---(end of broadcast)---
TIP 6: explain analyze is your
creation step rather than when people are checking in changes.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's RemoteDBA services!
---(end of broadcast)---
TIP 7: You can help support
release. Of course having every developer run autoconf suffers
from that problem too.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Get trained by Bruce Momjian - ask me about EnterpriseDB's PostgreSQL
training!
---(end of broadcast
have you recompiled 8.2.5 recently? That is, are they
compiled with the same version of gcc?
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Get trained by Bruce Momjian - ask me about EnterpriseDB's PostgreSQL
training!
---(end of broadcast
rows=1
width=4) (actual time=0.017..21.192 rows=1 loops=1)
Total runtime: 44.737 ms
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's PostGIS support!
---(end of broadcast)---
TIP 1
to line up.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's PostGIS support!
---(end of broadcast)---
TIP 4: Have you searched our list archives?
http://archives.postgresql.org
making slow in exchange for even
a small speedup at run-time.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's Slony Replication support!
---(end of broadcast)---
TIP 3: Have you checked our
prepare queries though?
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's PostGIS support!
---(end of broadcast)---
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe
that
may be a net loss.
This is a conflict which will affect Postgres in the future as well. Generally
I/O costs win over cpu costs in databases since only relatively small systems
are cpu-bound. Large systems are typically I/O-bound.
--
Gregory Stark
EnterpriseDB http
to have infrastructure similar to the buldfarm running a
standard set of benchmarks every day. It would be fascinating to see the
graphs day-by-day of performance. Hopefully we wouldn't see too many dips and
just a steady increase over time.
--
Gregory Stark
EnterpriseDB http
Guillaume Smet [EMAIL PROTECTED] writes:
On Nov 24, 2007 5:16 PM, Gregory Stark [EMAIL PROTECTED] wrote:
Several of the major changes in 8.3 are I/O vs CPU tradeoffs which could be
causing a slowdown if you're measuring primarily CPU resources. I'm thinking
of both HOT and packed varlenas. I
Guillaume Smet [EMAIL PROTECTED] writes:
Using pgbench -n -S -c 10 -t 10, I also have CVS tip as fast as
CVS from january. But using my set of queries, it's not.
Were you ever able to send your queries?
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about
because it means that databases which load piles of
contrib modules have that much more of an effect here. Some contrib modules
create a *lot* of operators.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's RemoteDBA services
really worked that well previously.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's RemoteDBA services!
---(end of broadcast)---
TIP 7: You can help support the PostgreSQL project by donating
would be worryign is if
runing a query which uses both varchar and some other ambiguous operator
causes it to lose all its gain.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's RemoteDBA services!
---(end of broadcast
). And, during merge
passes, make use of available sort memory to load multiple tuples from any
one input 'tape' at a time, thereby improving locality of access to the temp
file.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's On-Demand
this message:
ERROR: SELECT FOR UPDATE/SHARE is not supported for inheritance queries
Look at src/backend/optimizer/path/allpaths.c:287 for a comment about this.
I'm a bit puzzled myself why this affects SELECT FOR UPDATE/SHARE but not
straight UPDATES and DELETES.
--
Gregory Stark
much into it. I know it's a big patch, just the sheer
amount of code that has to be gone through carefully to port it forward might
make it kind of hard.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's PostGIS support
this? Is
this useful?
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's On-Demand Production Tuning
---(end of broadcast)---
TIP 3: Have you checked our extensive FAQ?
http
Josh Berkus [EMAIL PROTECTED] writes:
All,
Time for the annual update of this list:
...
Greg Stark, USA
I'm not sure what the countries are supposed to signify but that's neither the
country I hail from nor where I'm currently living.
--
Gregory Stark
EnterpriseDB http
and not affected by whether Postgres 7.3 is still around.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's On-Demand Production Tuning
---(end of broadcast)---
TIP 1: if posting/reading through Usenet
Gregory Stark [EMAIL PROTECTED] writes:
Josh Berkus [EMAIL PROTECTED] writes:
All,
Time for the annual update of this list:
...
Greg Stark, USA
I'm not sure what the countries are supposed to signify but that's neither the
country I hail from nor where I'm currently living.
Sorry
Joshua D. Drake [EMAIL PROTECTED] writes:
On Wed, 28 Nov 2007 13:58:27 +
Gregory Stark [EMAIL PROTECTED] wrote:
Gregory Stark [EMAIL PROTECTED] writes:
Josh Berkus [EMAIL PROTECTED] writes:
All,
Time for the annual update of this list:
...
Greg Stark, USA
I'm not sure
you a MyString you have the same problems
of needing to know what encoding was used. Presumably you would put that in a
member variable of the MyString class but that just goes to how the data
structures in C are laid out and what you're considering extra information.
--
Gregory Stark
where a relcache flush could be received. Wouldn't it make more
sense (and test more code) to go ahead and cache all the same data but flush
it whenever a relcache flush could possibly be received?
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's
and the actual heap_form_tuple call. The
tuple will be copied when you call tuplestore_puttuple (which should be done
in the same context the tuplestore was created in).
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Get trained by Bruce Momjian - ask me about EnterpriseDB's
Tom Lane [EMAIL PROTECTED] writes:
Gregory Stark [EMAIL PROTECTED] writes:
I'm a bit puzzled myself why this affects SELECT FOR UPDATE/SHARE but not
straight UPDATES and DELETES.
In straight UPDATE/DELETE we have enough structure in the query to know
how to associate each tuple returned
[EMAIL PROTECTED] writes:
select 124::bytea doesn't work
Is there an other way? (preferabily simple :)
This kind of question would be more appropriate on pgsql-general.
What do you want the resulting bytea to look like?
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
if you want to test it now.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's PostGIS support!
---(end of broadcast)---
TIP 6: explain analyze is your friend
) returns text as 'select val from tab
where id = $1' language sql stable;
CREATE FUNCTION
postgres=# update tab set val = lookup(id-1);
UPDATE 3
postgres=# select * from tab;
id | val
+-
1 |
2 | a
3 | b
(3 rows)
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Tom Lane [EMAIL PROTECTED] writes:
Gregory Stark [EMAIL PROTECTED] writes:
I could imagine problems the planner would have to deal with though, such as
what type is bogon in this query?
WITH RECURSIVE x(bogon) AS (select bogon from x) select * from x;
Just a note --- that's
it's planned then go back and replan recursive
queries making use of the new information to catch things like:
create function foo(int) returns text ...
create function foo(text) returns int ...
with recursive x(bogon)
as (select 1 union all select foo(bogon) from x)
select * from x
--
Gregory
[]);
could be allowed if they could be contrived to introduce an assignment cast.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's RemoteDBA services!
---(end of broadcast)---
TIP 2: Don't 'kill -9
-stopper problem for them.
If they're mentioned at all a single release note bullet point saying Many
optimizations and concurrency improvements in areas such as transaction start
and finish, checkpoint start, record visibility checking, merge join plans,
... would suffice.
--
Gregory Stark
of. The hard part is understanding the
algorithm itself and working out the details of the array management.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Get trained by Bruce Momjian - ask me about EnterpriseDB's PostgreSQL
training!
---(end
prepared queries and then executes them a few billion times
you can run into the same limitation.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's 24x7 Postgres support!
---(end of broadcast)---
TIP 5
Gregory Stark [EMAIL PROTECTED] writes:
Tom Lane [EMAIL PROTECTED] writes:
I think this can be fixed by changing the Executor so that it doesn't
use snapshot-curcid for this purpose. Instead, add a field to EState
showing the CommandID to mark tuples with. ExecutorStart, which has
enough
in the page-at-a-time buffer. That's probably safer too since for such
scans we're more likely to not actually read all the results anyways; there
could be a limit or something else above which will stop us.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Get trained by Bruce
Douglas McNaught [EMAIL PROTECTED] writes:
On 12/2/07, Gregory Stark [EMAIL PROTECTED] wrote:
The two interfaces I'm aware of for this are posix_fadvise() and libaio. I've
run tests with a synthetic benchmark which generates a large file then reads
a
random selection of blocks from within
Tom Lane [EMAIL PROTECTED] writes:
Gregory Stark [EMAIL PROTECTED] writes:
Recently there was a post on -performance about a particular case where
Postgres doesn't make very good use of the I/O system. This is when you try
to
fetch many records spread throughout a table in random order
, strerror(EWINDOWSBLOWS));
exit(2);
}
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's RemoteDBA services!
---(end of broadcast)---
TIP 1: if posting/reading through
and then we
don't really have a choice about which tape we want to preread from. And it's
a good thing too since maintaining such a list of bounds and finding the
lowest or highest would mean maintaining a second heap which would basically
double the cpu cost of sorting.
--
Gregory Stark
than what I was thinking.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's On-Demand Production Tuning
---(end of broadcast)---
TIP 7: You can help support the PostgreSQL project by donating
Gregory Stark [EMAIL PROTECTED] writes:
The two interfaces I'm aware of for this are posix_fadvise() and libaio.
I've run tests with a synthetic benchmark which generates a large file then
reads a random selection of blocks from within it using either synchronous
reads like we do now
function which is only really useful for
this one use case.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's Slony Replication support!
---(end of broadcast)---
TIP 6: explain analyze is your friend
is that the advantage of the
ordered blocks doesn't diminish with prefetching.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's On-Demand Production Tuning
---(end of broadcast)---
TIP 6: explain analyze
Decibel! [EMAIL PROTECTED] writes:
On Dec 4, 2007, at 1:42 PM, Gregory Stark wrote:
I'm debating between two ways to structure the code right now. Do I put the
logic to peek ahead in nodeBitmapHeapScan to read ahead and remember the
info
seen or in tidbitmap with an new api function which
Simon Riggs [EMAIL PROTECTED] writes:
On Wed, 2007-12-05 at 08:24 +, Gregory Stark wrote:
Tom Lane [EMAIL PROTECTED] writes:
Simon Riggs [EMAIL PROTECTED] writes:
I'm thinking that there isn't any way currently of working out how big a
compressed toast object is?
pg_column_size
integer).
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's PostGIS support!
---(end of broadcast)---
TIP 5: don't forget to increase your free space map settings
What it turns out is hard to determine is whether the column was stored
externally. To do that you have to rely on the trick of checking
pg_column_size(table.*) and that only works if it's the only column likely to
be stored externally.
--
Gregory Stark
EnterpriseDB http
. Are we sure Slony et al don't use time_t or enums
or anything else which may have changed between these two runtimes?
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's Slony Replication support!
---(end of broadcast
Rainer Bauer [EMAIL PROTECTED] writes:
Gregory Stark wrote:
This is because of (at least) two changes in the ABI between the runtimes used
by mingw and VC++.
1) Enums are apparently 8 bytes on VC++ but 4 bytes on mingw
They are 4 bytes here on my 32 bit WinXP machine with VS2005SP1.
Oh, I
this in c.h:
#ifdef WIN32
#ifndef _USE_32BIT_TIME_T
#error Postgres uses 32 bit time_t add #define _USE_32BIT_TIME_T on Windows
#endif
#endif
For modules which *do* use time_t this is safer. However for modules which
don't use time_t it'll be an unnecessary hassle.
--
Gregory Stark
Gregory Stark [EMAIL PROTECTED] writes:
Tom Lane [EMAIL PROTECTED] writes:
Josh Berkus [EMAIL PROTECTED] writes:
I've just noticed that pg_controldata doesn't say anything about whether
the database is 64-bit or 32-bit.
That's because there is no such concept.
I think the relevant
members or
pointers so an LP64 architecture actually would have the same member sizes as
a 32-bit architecture.
So if there's an LP64 architecture which has the same maxalign (presumably
64-bit for doubles) as its 32-bit cousin then it's actually possible we
wouldn't notice?
--
Gregory Stark
1001 - 1100 of 1641 matches
Mail list logo