Search Postgresql Archives

Re: postgres server failure during some database opearion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Surabhi Ahuja wrote:
I have a query regarding, the postgres Sever failure, for eg say  i
am parsng a file and inserting rows into a table. Now while this
opeartion is taking place the server crashes, or say the power goes
off, or say someone kills the postmaster demon.

Any rows you have committed (and received a successful result code for) should still be there. Any rows you haven't committed will not be.


what happens to the rows that have been inserted till now? can we get
a status of how many rows have been installed or not?

You can always do SELECT count(*) FROM my_table to see how many rows are in it.


--
  Richard Huxton
  Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
     joining column's datatypes do not match

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux