Any situation which causes a Context object to go out of scope (which can happen if additional context objects are created in the course of the processing) can leave a hanging transaction.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git shortlog -s -n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data:text/html, <html contenteditable> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For your reference, you can use the following test credit card numbers when testing your connection. The expiration date must be set to the present date or later: | |
- American Express Test Card: 370000000000002 | |
- Discover Test Card: 6011000000000012 | |
- Visa Test Card: 4007000000027 | |
- Second Visa Test Card: 4012888818888 | |
- MasterCard: 5555555555554444 | |
- JCB: 3088000000000017 | |
- Diners Club/ Carte Blanche: 38000000000006 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(sudo -u postgres pg_ctl stop -D /usr/local/pgsql/data -m i -t 5 || true) && sudo stop postgresql | |
# start again with | |
sudo start postgresql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT pg_terminate_backend(pid) | |
FROM pg_stat_activity | |
WHERE datname = 'DB' | |
AND pid <> pg_backend_pid() | |
AND state = 'idle in transaction (aborted)' | |
AND state_change < current_timestamp - INTERVAL '5' MINUTE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT relation, transaction, pid, mode, granted, relname | |
FROM pg_locks | |
INNER JOIN pg_stat_user_tables | |
ON pg_locks.relation = pg_stat_user_tables.relid | |
WHERE pg_locks.pid='pid'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:size=>nil, :size_id=>nil, :color=>"FUCHSIA", :color_id=>5639, :vendor_color_id=>1, :sku=>{"color_id"=>1, "no_returns"=>{"enabled"=>false, "message"=>""}, "price"=>{"alternate_copy"=>"", "list_price"=>"$295.00", "list_price_label"=>"Was", "on_sale"=>true, "sale_price"=>"$118.00", "sale_price_label"=>"Now"}, "size_id"=>-1, "sku_id"=>"1689949379079855", "status_alias"=>"waitlist", "status_label"=>"Sold Out > Add to Wait List", "status_message"=>"", "upc"=>"888246184384"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ncdu / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
psql --cluster 9.1/main --version |
OlderNewer