| From: | Richard Huxton <dev(at)archonet(dot)com> |
|---|---|
| To: | Surabhi Ahuja <surabhi(dot)ahuja(at)iiitb(dot)ac(dot)in> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: postgres server failure during some database opearion |
| Date: | 2005-02-10 13:21:33 |
| Message-ID: | 420B5FDD.5090705@archonet.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Christopher Browne | 2005-02-10 13:33:33 | Re: Functions with more than 32 parameters |
| Previous Message | Shachar Shemesh | 2005-02-10 12:45:12 | Re: postgres server failure during some database opearion |