微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

PostgreSQL gen_random_uuid被使用后消失

如何解决PostgreSQL gen_random_uuid被使用后消失

我目前正在使用以下语句在服务器上启用Dim aTimer As New System.Timers.Timer Public Function TelegramSendMessage(ByVal apilToken As String,ByVal destID As String,ByVal text As String) As String Dim a As String = apilToken Dim urlString As String = "https://api.telegram.org/bot" + apilToken + "/sendMessage?chat_id=" + destID + "&text=" + text Dim webclient As WebClient = New WebClient() Return webclient.DownloadString(urlString) End Function Private Sub tick(ByVal sender As Object,ByVal e As System.Timers.ElapsedEventArgs) ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 TelegramSendMessage(yourtoken,destinationid,"hi") End Sub Protected Sub Button3_Click(sender As Object,e As EventArgs) Handles Button3.Click aTimer.AutoReset = True aTimer.Interval = 60000 AddHandler aTimer.Elapsed,AddressOf tick aTimer.Enabled = True End Sub Protected Sub Button4_Click(sender As Object,e As EventArgs) Handles Button4.Click 'aTimer.dispose() 'aTimer.Enabled = False aTimer.Stop() End Sub

pgcrypto

奇怪的是,我能够将其配置为某些列的认值,但是过了一段时间,该功能似乎消失了,我开始收到此消息:

drop extension if exists pgcrypto cascade; create extension pgcrypto cascade;

运行此命令似乎表明它仍然存在:

select gen_random_uuid();

[42883] ERROR: function gen_random_uuid() does not exist Hint: No function matches the given name and argument types. You might need to add explicit type casts.

什么可能导致select * from pg_proc where proname like 'gen_random_%'; 17876,gen_random_bytes,16387,10,13,1,-,f,false,true,v,s,17,23,pg_random_bytes,$libdir/pgcrypto,17877,gen_random_uuid,2950,"",pg_random_uuid,这样消失?即使在消失之前已经明确引用了它几次?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。