[GH-ISSUE #24] 导出sql中的pgsql的bigint 数据类型问题 #12

Closed
opened 2026-03-02 04:05:17 +03:00 by kerem · 3 comments
Owner

Originally created by @jackman0925 on GitHub (Sep 6, 2022).
Original GitHub issue: https://github.com/findyourmagic/dber/issues/24

导出sql中的pgsql的bigint 数据类型问题 ,请见附件
DBER1_png_and_DBER

Originally created by @jackman0925 on GitHub (Sep 6, 2022). Original GitHub issue: https://github.com/findyourmagic/dber/issues/24 导出sql中的pgsql的bigint 数据类型问题 ,请见附件 <img width="1015" alt="DBER1_png_and_DBER" src="https://user-images.githubusercontent.com/2059376/188544455-7eaeee25-106e-43a6-8fd2-94e4e6a353fc.png">
kerem 2026-03-02 04:05:17 +03:00
  • closed this issue
  • added the
    advice
    bug
    labels
Author
Owner

@findyourmagic commented on GitHub (Sep 6, 2022):

感谢,
PG 里面设置自增的 bigint 做主键时好像需要设置为 bigserial,当前的问题可以先把类型设置为 bigserial 解决。
不过确实这里直接转换成 serial 是有问题的,这个转换的问题源自所依赖的库 dbml,我会再测试下给他们提个 issue,并在这里跟进一下结果。

<!-- gh-comment-id:1237691438 --> @findyourmagic commented on GitHub (Sep 6, 2022): 感谢, PG 里面设置自增的 bigint 做主键时好像需要设置为 bigserial,当前的问题可以先把类型设置为 bigserial 解决。 不过确实这里直接转换成 serial 是有问题的,这个转换的问题源自所依赖的库 dbml,我会再测试下给他们提个 issue,并在这里跟进一下结果。
Author
Owner

@jackman0925 commented on GitHub (Sep 6, 2022):

👍,online的已经很不错了,加油!
提一个建议, 如果表多的话查找不是很方便,如果左手边有一个列表会更加方便一些,谢谢!

<!-- gh-comment-id:1237709304 --> @jackman0925 commented on GitHub (Sep 6, 2022): 👍,online的已经很不错了,加油! 提一个建议, 如果表多的话查找不是很方便,如果左手边有一个列表会更加方便一些,谢谢!
Author
Owner

@findyourmagic commented on GitHub (Sep 6, 2022):

类似索引可以快速聚焦到指定表那种么?不错的建议

<!-- gh-comment-id:1237732632 --> @findyourmagic commented on GitHub (Sep 6, 2022): 类似索引可以快速聚焦到指定表那种么?不错的建议
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dber#12
No description provided.