Re: [sqlite] Can a sys admin control temporary file location without changing the source code?

2011-07-13 Thread Tom Browder
On Mon, Jul 11, 2011 at 01:18, H. Phil Duby wrote: > On Sat, Jul 9, 2011 at 23:22, Stephan Beal wrote: > >> On Sun, Jul 10, 2011 at 4:25 AM, Tom Browder >> wrote: >> >> > sqlite db files and making sure that directory is writable by my web >> > server.  I make sure that the directory is not used

Re: [sqlite] Can a sys admin control temporary file location without changing the source code?

2011-07-10 Thread H. Phil Duby
On Sat, Jul 9, 2011 at 23:22, Stephan Beal wrote: > On Sun, Jul 10, 2011 at 4:25 AM, Tom Browder > wrote: > > > sqlite db files and making sure that directory is writable by my web > > server. I make sure that the directory is not used for anything else > > in order to help secure my web site.

Re: [sqlite] Can a sys admin control temporary file location without changing the source code?

2011-07-09 Thread Stephan Beal
On Sun, Jul 10, 2011 at 4:25 AM, Tom Browder wrote: > sqlite db files and making sure that directory is writable by my web > server. I make sure that the directory is not used for anything else > in order to help secure my web site. > Another tip for such uses: .htaccess: (or however your d

Re: [sqlite] Can a sys admin control temporary file location without changing the source code?

2011-07-09 Thread Tom Browder
On Thu, Jun 30, 2011 at 15:02, Stephan Beal wrote: > On Thu, Jun 30, 2011 at 9:52 PM, Tom Browder wrote: > >> But I think the journal file is the problem...as I understand it, it >> has to be on disk, doesn't it? The answer seems to be yes. I have solved my problem by defining an explicit direc

Re: [sqlite] Can a sys admin control temporary file location without changing the source code?

2011-06-30 Thread Stephan Beal
On Thu, Jun 30, 2011 at 9:52 PM, Tom Browder wrote: > But I think the journal file is the problem...as I understand it, it > has to be on disk, doesn't it? > Now that you mention it, that might be: http://www.sqlite.org/compile.html i interpretted SQLITE_TEMP_STORE=3 as using memory for the jo

Re: [sqlite] Can a sys admin control temporary file location without changing the source code?

2011-06-30 Thread Tom Browder
On Thu, Jun 30, 2011 at 14:44, Stephan Beal wrote: > On Thu, Jun 30, 2011 at 9:06 PM, Tom Browder wrote: ... >> Thanks, Richard (and Simon), I think I can solve my web access problem >> by giving the db file its own directory. ... > You can also try disabling the temp files (telling it to use mem

Re: [sqlite] Can a sys admin control temporary file location without changing the source code?

2011-06-30 Thread Stephan Beal
On Thu, Jun 30, 2011 at 9:06 PM, Tom Browder wrote: > Thanks, Richard (and Simon), I think I can solve my web access problem > by giving the db file its own directory. > You can also try disabling the temp files (telling it to use memory instead). -- - stephan beal http://wanderinghorse.ne

Re: [sqlite] Can a sys admin control temporary file location without changing the source code?

2011-06-30 Thread Tom Browder
On Thu, Jun 30, 2011 at 13:42, Richard Hipp wrote: > On Thu, Jun 30, 2011 at 2:30 PM, Tom Browder wrote: ... >>  From my limited testing on my web server [temporary files] are >> written in the same directory as the db file, but I would like them to >> be written to a separate directory. ... > Se

Re: [sqlite] Can a sys admin control temporary file location without changing the source code?

2011-06-30 Thread Simon Slavin
On 30 Jun 2011, at 7:30pm, Tom Browder wrote: > I've not looked at the code yet, but is there any way, without > changing the code and recompiling, to control where the temporary > files are created? From my limited testing on my web server they are > written in the same directory as the db file

Re: [sqlite] Can a sys admin control temporary file location without changing the source code?

2011-06-30 Thread Richard Hipp
On Thu, Jun 30, 2011 at 2:30 PM, Tom Browder wrote: > From my limited testing on my web server [temporary files] are > written in the same directory as the db file, but I would like them to > be written to a separate directory. > See http://www.sqlite.org/tempfiles.html for a list of the variou

[sqlite] Can a sys admin control temporary file location without changing the source code?

2011-06-30 Thread Tom Browder
I've seen various threads in the users' list archives about the subject of temporary file location with no definitive answer, and I've seen the use of the pragma temp_store_directory is deprecated so that solution is out. I've not looked at the code yet, but is there any way, without changing the