dump

PostgreSQL: database restore from dump - syntax error

喜夏-厌秋 提交于 2019-12-02 15:51:54
I'm trying to restore a PostgreSQL database by executing the SQL that pg_dump created, on an empty database. I'm getting this error: ERROR: syntax error at or near "\" LINE 5211: \. lines 5210 and 5211 read: COPY auth_group (id, name) FROM stdin; \. It works fine on my Linux server, where I use this command: psql -U dbname < dumpfile.sql but on Windows, I'm not sure how to do the same, so I've been trying to run the dumpfile's sql from pgAdminIII query utility. What the recommended way of importing a db from a dump on Windows? Or: how can that syntax issue be resolve? Any help is much

How to use ADPLUS to _ONLY_ get MiniDumpOnSecond

…衆ロ難τιáo~ 提交于 2019-12-02 15:46:36
问题 For a production Win2003 web server, I'd like to be able to allways log minidumps whenever the w3wp.exe processes crash...I've read the documentation for ADPLUS, and have xcopy-deployed it to the production web server, and have started adplus.exe from the command line as follows: adplus.exe -crash -MiniOnSecond -NoDumpOnFirst -pmn w3wp.exe -o C:\Dumps This does log the "MiniOnSecond," but it is also logging full dumps on first--and I don't want those (they're big fat files, and don't have

Difference between javacore, thread dump and heap dump in Websphere

ぐ巨炮叔叔 提交于 2019-12-02 14:16:59
Can someone tell me the exact difference between javacore, thread dump and heap dump? Under which situation each of these are used?? A thread dump is a dump of the stacks of all live threads. Thus useful for analysing what an app is up to at some point in time, and if done at intervals handy in diagnosing some kinds of 'execution' problems (e.g. thread deadlock). A heap dump is a dump of the state of the Java heap memory. Thus useful for analysing what use of memory an app is making at some point in time so handy in diagnosing some memory issues, and if done at intervals handy in diagnosing

How to use ADPLUS to _ONLY_ get MiniDumpOnSecond

泪湿孤枕 提交于 2019-12-02 10:08:09
For a production Win2003 web server, I'd like to be able to allways log minidumps whenever the w3wp.exe processes crash...I've read the documentation for ADPLUS, and have xcopy-deployed it to the production web server, and have started adplus.exe from the command line as follows: adplus.exe -crash -MiniOnSecond -NoDumpOnFirst -pmn w3wp.exe -o C:\Dumps This does log the "MiniOnSecond," but it is also logging full dumps on first--and I don't want those (they're big fat files, and don't have what I need). Has anyone found a way to get the "-NoDumpOnFirst" flag to actually work? Additionally, I'd

how to disable creating java heap dump after VM crashes?

随声附和 提交于 2019-12-02 00:56:53
问题 JVM runs on FreeBSD with 18Gb memory. creating core file takes about hour, which is very slow, so i need some way to disable it. 回答1: If this is an OS crash dump then use ulimit to set the maximum core size to 0. 回答2: I'm not sure this will work, but if you're using the HotSpot VM, try this in the arguments to the java command: -XX:HeapDumpPath=/dev/null If you want to turn off core dumps altogether, you can use the ulimit approach (make sure to use the -H flag to set the hard limit): ulimit

Qt C++ Unhandled exceptions stack trace

我的未来我决定 提交于 2019-12-01 23:30:57
问题 I am trying to figure out a way to get the stack trace of a deployed c++ application in the event of a crash. I have tried a couple of approaches and I think my issue is related to the stack after an exception occurs. I created a test application in Qt. Here is the code. void miniDumpFunc() { MiniDump dump; dump.Create(L"C:\\dmp\\dmp.dmp"); } void anotherFunc() { miniDumpFunc(); } LONG WINAPI OurCrashHandler(EXCEPTION_POINTERS * /*ExceptionInfo*/) { miniDumpFunc(); return EXCEPTION_EXECUTE

how to disable creating java heap dump after VM crashes?

北城余情 提交于 2019-12-01 21:45:12
JVM runs on FreeBSD with 18Gb memory. creating core file takes about hour, which is very slow, so i need some way to disable it. If this is an OS crash dump then use ulimit to set the maximum core size to 0. I'm not sure this will work, but if you're using the HotSpot VM, try this in the arguments to the java command: -XX:HeapDumpPath=/dev/null If you want to turn off core dumps altogether, you can use the ulimit approach (make sure to use the -H flag to set the hard limit): ulimit -c -H 0 If you really mean a core file, and not something specific to java, then you need to use the ulimit

Qt C++ Unhandled exceptions stack trace

自闭症网瘾萝莉.ら 提交于 2019-12-01 20:43:20
I am trying to figure out a way to get the stack trace of a deployed c++ application in the event of a crash. I have tried a couple of approaches and I think my issue is related to the stack after an exception occurs. I created a test application in Qt. Here is the code. void miniDumpFunc() { MiniDump dump; dump.Create(L"C:\\dmp\\dmp.dmp"); } void anotherFunc() { miniDumpFunc(); } LONG WINAPI OurCrashHandler(EXCEPTION_POINTERS * /*ExceptionInfo*/) { miniDumpFunc(); return EXCEPTION_EXECUTE_HANDLER; } void badFunc() { int *myNull = NULL; *myNull = 42; } int main(int argc, char *argv[]) {

Indexing wikipedia dump with solr

坚强是说给别人听的谎言 提交于 2019-12-01 13:20:15
I have solr 3.6.2 installed on my machine, perfectly running with tomcat. I want to index a wikipedia dump file using solr. How do I do this using DataImportHandler? Any other way? I don't have any knowledge of xml. The file I have mentioned has size of around 45GB when extracted. Any help would be greatly appreciated. Update- I tried doing whats said on the DataImportHandler page. But there is some error maybe because their version of solr is much older. My data.config- <dataConfig> <dataSource type="FileDataSource" encoding="UTF-8" /> <document> <entity name="page" processor=

Generated SQL with PredicateBuilder, LINQPad and operator ANY

一笑奈何 提交于 2019-12-01 11:14:01
I previously asked a question about chaining conditions in Linq To Entities. Now I use LinqKit and everything works fine. I want to see the generated SQL and after reading this answer , I use LinqPad . This is my statement: var predProduct = PredicateBuilder.True<Product>(); var predColorLanguage = PredicateBuilder.True<ColorLanguage>(); predProduct = predProduct.And(p => p.IsComplete); predColorLanguage = predColorLanguage.And(c => c.IdColorEntity.Products.AsQueryable().Any(expr)); ColorLanguages.Where(predColorLanguage).Dump(); The code works in VS2008, compile and produce the correct result