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
package com.mycompany.tree; | |
public class Node { | |
public int value; | |
public Node left; | |
public Node right; | |
public int level; | |
public Node(int value) { |
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
//delete the user sessions | |
SELECT pg_terminate_backend( pid ) | |
FROM pg_stat_activity | |
WHERE pid <> pg_backend_pid( ) | |
AND datname = 'oldname'; | |
ALTER DATABASE oldname RENAME TO newname |
NewerOlder