[ADMIN] What does a .1 suffix on a PG data file signify?

2012-05-16 Thread David Schnur
I'm investigating a 'could not stat file' error that points to a file "base/16384/52212305.1". All the data files I've ever seen have names that are whole numbers; I've never seen a decimal suffix. It occurs to me that perhaps this is some kind of temp-file, or a system for avoiding duplicate fil

[ADMIN] Why would queries fail with 'could not stat file' after CLUSTER?

2012-04-09 Thread David Schnur
The software I develop bundles a Postgres 8.3.15 database for storage. Several users are reporting errors like this: ProgrammingError: could not stat file "base/16384/52212305.1": Permission denied I'm unable to reproduce this myself, but it's clearly a real issue. The response to all previous

Re: [ADMIN] Repeatable crash in pg_dump (with -d2 info)

2012-01-17 Thread David Schnur
I finally had time to test this further on a variety of systems, and was unable to reproduce on any non-Windows platform. The dump even works fine on Windows XP; just not Windows 7. This prompted me to do a little more research, and this time I found this thread from Sept. 2011: http://postgresq

Re: [ADMIN] How can one prevent logging to the Windows event log?

2011-12-30 Thread David Schnur
Ah, I see; it looks like when logging_collector = 'off', Postgres logs to the Windows event log. Is this a bug? Given that log_destination has an 'eventlog' option, it seems weird for it to also be logging there based on the value of a different option. Since I don't want logging to files, I gue

[ADMIN] How can one prevent logging to the Windows event log?

2011-12-29 Thread David Schnur
I have log_destination = 'stderr', but Postgres (8.3.15) writes messages to the Windows event log. How can I prevent it from doing this? Any insight into this behavior would be greatly appreciated. Thanks!

Re: [ADMIN] Repeatable crash in pg_dump (with -d2 info)

2011-11-29 Thread David Schnur
On Mon, Nov 28, 2011 at 9:48 PM, Craig Ringer wrote: > > Getting a usable stack trace on Windows isn't actually too hard. The problem isn't getting the trace - I know how to do that - it's that I don't have the pdbs for this build, and so the trace wouldn't be very useful. I may be able to get

Re: [ADMIN] Repeatable crash in pg_dump (with -d2 info)

2011-11-28 Thread David Schnur
I probably can't get a stack trace, but I was able to reproduce it with just that function. Without the function, pg_dump works fine. I can DROP the function, pg_dump works, then add it back again and pg_dump crashes. Here are my steps: initdb -A md5 --no-locale -E UTF8 -U testuser -D "C:\Users

Re: [ADMIN] Repeatable crash in pg_dump (with -d2 info)

2011-11-23 Thread David Schnur
Sure; the function is created programmatically as part of schema creation, by the same user who owns (almost) everything else in the database. The definition looks like this: CREATE OR REPLACE FUNCTION datastore_unpack( data_times TIMESTAMP WITH TIME ZONE[], data_v

[ADMIN] Repeatable crash in pg_dump (with -d2 info)

2011-11-23 Thread David Schnur
I'm seeing pg_dump [8.3.15 Windows] crash reproducibly against a particular database. Searching the web, I found [ http://grokbase.com/t/postgresql.org/pgsql-general/2001/02/pg-dump-crash/06ss55h5l35jh4bnnqfigxisy534] with a response from Tom Lane suggesting that it was probably due to a bug in pg

Re: [ADMIN] How and when are encoding DLLs used on Windows?

2011-11-21 Thread David Schnur
On Wed, Nov 16, 2011 at 6:57 PM, Tom Lane wrote: > They're used for character set encoding conversions, eg when > database_encoding = UTF8 and client_encoding = LATIN1 (or any other > non-identical combination). Thanks, Tom and Craig; that makes perfect sense. I'd rather not assume anything ab

[ADMIN] How and when are encoding DLLs used on Windows?

2011-11-16 Thread David Schnur
I bundle Postgres (8.3.15) with another product as a back-end database. On Windows, the default build includes a bunch of what appear to be codec libraries, with names like, utf8_and_cyrillic.dll, ascii_and_mic.dll, etc. But using Microsoft's dependency walker tool, I see no references to any of

Re: [ADMIN] Shutdown fails with both 'fast' and 'immediate'

2010-05-12 Thread David Schnur
@Julio Leyva: The table does get vacuumed at the end of the maintenance tasks; in this case it's not making it that far, of course. @Scott Marlowe: Truncate isn't an option here, unfortunately. I'm less concerned with the particular query than with the general question of when a shutdown could ha

[ADMIN] Shutdown fails with both 'fast' and 'immediate'

2010-05-12 Thread David Schnur
I develop an app that uses a back-end Postgres database, currently 8.3.9. The database is started when the app starts up, and stopped when it shuts down. Shutdown uses pg_ctl with -m fast, and waits two minutes for the process to complete. If it doesn't, it tries -m immediate, and waits two more

Re: [ADMIN] VACUUM FULL memory requirements

2009-12-21 Thread David Schnur
I've been doing more testing on several different machines, but still haven't found a solution to my problem where VACUUM FULL is running out of memory. Besides the original case on RHEL4, I've been able to reproduce it on both Windows and OSX, with 3GB and 5GB RAM, respectively. Interestingly, i

Re: [ADMIN] VACUUM FULL memory requirements

2009-12-14 Thread David Schnur
> > If you actually expect it to be re-used by the database sometime > later, I would just stick with normal VACUUM (with adequate fsm It may or may not be used again. Although disk is cheap, it is a substantial amount of space, and I'd prefer it wasn't locked-up forever. For a bit of extra con

Re: [ADMIN] VACUUM FULL memory requirements

2009-12-14 Thread David Schnur
On Mon, Dec 14, 2009 at 12:04 PM, Kevin Grittner < kevin.gritt...@wicourts.gov> wrote: > I hope you've been following that with a REINDEX every time; > otherwise you're causing index bloat. Yes, it REINDEXes afterwards. Are these inserts happening in the same table(s) each time? If so, > what

[ADMIN] VACUUM FULL memory requirements

2009-12-14 Thread David Schnur
Hello, I have a weekly task set up to VACUUM FULL a fairly large (~300M row ~50GB) database. The intent is to free up disk space from especially-large inserts that aren't covered by the regular reclamation from a daily VACUUM. Recently, I've been getting the following error: (OperationalError)

Re: [ADMIN] Does pg_dump have a 2GB file-size limit?

2009-09-14 Thread David Schnur
Thank you for the fast response! Your question prompted me to check our configure options (something I should have done originally). For reasons unknown to me, we have been building with --disable-largefile on some systems, including RHEL4. That obviously goes a long way towards explaining the b

[ADMIN] Does pg_dump have a 2GB file-size limit?

2009-09-14 Thread David Schnur
I develop a piece of software that uses PostgreSQL (8.3.5) as a back-end database. The software can, optionally, use pg_dump to create snapshots of the database. One user has run into a problem where pg_dump dumps 2GB, then claims that the archive is too large. I haven't yet found documentation